39 #include <lifev/core/mesh/RegionMesh.hpp>    60 template<
typename Elt>
    64            RegionMesh<Elt>&  mesh,
    71             readMppFile ( mesh, fileName, regionFlag );
    75             readINRIAMeshFile ( mesh, fileName, regionFlag );
    79             readGmshFile ( mesh, fileName, regionFlag );
    83             readNetgenMesh ( mesh, fileName, regionFlag );
    87             std::ostringstream ostr;
    88             ostr << 
"Unsupported 2D file format";
    89             throw std::invalid_argument ( ostr.str() );
    95 template<
typename Elt>
    99            RegionMesh<Elt>& mesh,
   106             readFreeFemFile ( mesh, fileName, regionFlag );
   110             std::ostringstream ostr;
   111             ostr << 
"Unsupported 2D file format";
   112             throw std::invalid_argument ( ostr.str() );
   208     void showMe ( std::ostream& output = std::cout ) 
const;
 
Importer(const Importer &importer)
Copy constructor. 
 
void showMe(std::ostream &output=std::cout) const
Print attributes of the class. 
 
Importer(std::string const &fileName, MeshFormat const &format)
Constructor with name and format. 
 
Importer General interface for read different types of mesh. 
 
Importer()
Empty constructor, use GMSH as default mesh format. 
 
ID markerID_Type
markerID_Type is the type used to store the geometric entity marker IDs 
 
Importer & operator=(const Importer &importer)
Assign opertor overloading. 
 
std::string M_fileName
Name of the file to import. 
 
void import(RegionMesh< LinearQuad > &mesh, markerID_Type regionFlag)
Import mesh with linear quadrangles. 
 
void import2D(std::string const &fileName, MeshFormat const &format, RegionMesh< Elt > &mesh, markerID_Type regionFlag)
 
void import3D(std::string const &fileName, MeshFormat const &format, RegionMesh< Elt > &mesh, markerID_Type regionFlag)
 
void setFileName(std::string const &fileName)
Set the file name. 
 
void setFormat(MeshFormat const &format)
Set the format of the mesh file. 
 
MeshFormat M_format
Format of the file to import.