RINGMesh  Version 5.0.0
A programming library for geological model meshes
RINGMesh::GeoModelIOHandler< DIMENSION > Class Template Referenceabstract

#include <io.h>

Public Member Functions

virtual ~GeoModelIOHandler ()=default
 
bool load_geomodel (const std::string &filename, GeoModel< DIMENSION > &geomodel)
 
void save_geomodel (const GeoModel< DIMENSION > &geomodel, const std::string &filename)
 
virtual index_t dimension (const std::string &filename) const
 
template<>
void initialize ()
 
template<>
void initialize ()
 

Static Public Member Functions

static void initialize ()
 
static std::unique_ptr< GeoModelIOHandler< DIMENSION > > get_handler (const std::string &filename)
 

Protected Member Functions

 GeoModelIOHandler ()=default
 
virtual void load (const std::string &filename, GeoModel< DIMENSION > &geomodel)=0
 
virtual void save (const GeoModel< DIMENSION > &geomodel, const std::string &filename)=0
 

Private Member Functions

 ringmesh_disable_copy_and_move (GeoModelIOHandler)
 

Static Private Member Functions

static std::unique_ptr< GeoModelIOHandlercreate (const std::string &format)
 

Detailed Description

template<index_t DIMENSION>
class RINGMesh::GeoModelIOHandler< DIMENSION >

Definition at line 109 of file io.h.

Constructor & Destructor Documentation

◆ ~GeoModelIOHandler()

template<index_t DIMENSION>
virtual RINGMesh::GeoModelIOHandler< DIMENSION >::~GeoModelIOHandler ( )
virtualdefault

◆ GeoModelIOHandler()

template<index_t DIMENSION>
RINGMesh::GeoModelIOHandler< DIMENSION >::GeoModelIOHandler ( )
protecteddefault

Member Function Documentation

◆ create()

template<index_t DIMENSION>
std::unique_ptr< GeoModelIOHandler< DIMENSION > > RINGMesh::GeoModelIOHandler< DIMENSION >::create ( const std::string &  format)
staticprivate

Definition at line 160 of file io.cpp.

◆ dimension()

template<index_t DIMENSION>
virtual index_t RINGMesh::GeoModelIOHandler< DIMENSION >::dimension ( const std::string &  filename) const
inlinevirtual

Definition at line 127 of file io.h.

◆ get_handler()

template<index_t DIMENSION>
std::unique_ptr< GeoModelIOHandler< DIMENSION > > RINGMesh::GeoModelIOHandler< DIMENSION >::get_handler ( const std::string &  filename)
static

Definition at line 180 of file io.cpp.

◆ initialize() [1/3]

template<>
void RINGMesh::GeoModelIOHandler< 2 >::initialize ( )

Definition at line 94 of file io_geomodel.cpp.

◆ initialize() [2/3]

template<>
void RINGMesh::GeoModelIOHandler< 3 >::initialize ( )

Definition at line 109 of file io_geomodel.cpp.

◆ initialize() [3/3]

template<index_t DIMENSION>
static void RINGMesh::GeoModelIOHandler< DIMENSION >::initialize ( )
static

◆ load()

template<index_t DIMENSION>
virtual void RINGMesh::GeoModelIOHandler< DIMENSION >::load ( const std::string &  filename,
GeoModel< DIMENSION > &  geomodel 
)
protectedpure virtual

◆ load_geomodel()

template<index_t DIMENSION>
bool RINGMesh::GeoModelIOHandler< DIMENSION >::load_geomodel ( const std::string &  filename,
GeoModel< DIMENSION > &  geomodel 
)

Definition at line 94 of file io.cpp.

◆ ringmesh_disable_copy_and_move()

template<index_t DIMENSION>
RINGMesh::GeoModelIOHandler< DIMENSION >::ringmesh_disable_copy_and_move ( GeoModelIOHandler< DIMENSION >  )
private

◆ save()

template<index_t DIMENSION>
virtual void RINGMesh::GeoModelIOHandler< DIMENSION >::save ( const GeoModel< DIMENSION > &  geomodel,
const std::string &  filename 
)
protectedpure virtual

◆ save_geomodel()

template<index_t DIMENSION>
void RINGMesh::GeoModelIOHandler< DIMENSION >::save_geomodel ( const GeoModel< DIMENSION > &  geomodel,
const std::string &  filename 
)

Definition at line 104 of file io.cpp.


The documentation for this class was generated from the following files: