43 #ifndef FILEMANAGER_HH_
44 #define FILEMANAGER_HH_
85 template <
class MeshT>
86 bool readFile(
const std::string& _filename, MeshT& _mesh,
87 bool _topologyCheck =
true,
88 bool _computeBottomUpIncidences =
true)
const;
100 template <
class MeshT>
101 bool writeFile(
const std::string& _filename,
const MeshT& _mesh)
const;
118 template <
class MeshT>
119 void readProperty(std::istream& _iff, MeshT& _mesh)
const;
121 template <
class PropT,
class MeshT>
122 void generateGenericProperty(
const std::string& _entity_t,
const std::string& _name,
123 std::istream& _iff, MeshT& _mesh)
const;
126 template<
class IteratorT>
127 void writeProps(std::ostream& _ostr,
const IteratorT& _begin,
const IteratorT& _end)
const;
130 void trimString(std::string& _string)
const;
133 void extractQuotedText(std::string& _string)
const;
136 bool getCleanLine(std::istream& ifs, std::string& _string,
bool _skipEmptyLines =
true)
const;
143 #if defined(INCLUDE_TEMPLATES) && !defined(FILEMANAGERT_CC)
144 #include "FileManagerT.cc"
bool readFile(const std::string &_filename, MeshT &_mesh, bool _topologyCheck=true, bool _computeBottomUpIncidences=true) const
Read a mesh from a file.
FileManager()
Default constructor.
Read/Write mesh data from/to files.
bool isTetrahedralMesh(const std::string &_filename) const
Test whether given file contains a tetrahedral mesh.
bool isHexahedralMesh(const std::string &_filename) const
Test whether given file contains a hexahedral mesh.
~FileManager()
Default destructor.
bool writeFile(const std::string &_filename, const MeshT &_mesh) const
Write a mesh to a file.