43 #ifndef FILEMANAGER_HH_ 44 #define FILEMANAGER_HH_ 50 #include "OpenVolumeMesh/Config/Export.hh" 95 template <
class MeshT>
96 bool readStream(std::istream &_istream, MeshT& _mesh,
97 bool _topologyCheck =
true,
98 bool _computeBottomUpIncidences =
true)
const;
116 template <
class MeshT>
117 bool readFile(
const std::string& _filename, MeshT& _mesh,
118 bool _topologyCheck =
true,
119 bool _computeBottomUpIncidences =
true)
const;
128 template <
class MeshT>
129 void writeStream(std::ostream &_ostream,
const MeshT& _mesh)
const;
141 template <
class MeshT>
142 bool writeFile(
const std::string& _filename,
const MeshT& _mesh)
const;
147 bool isHexahedralMesh(
const std::string& _filename)
const;
152 bool isTetrahedralMesh(
const std::string& _filename)
const;
159 template <
class MeshT>
160 void readProperty(std::istream& _iff, MeshT& _mesh)
const;
162 template <
class PropT,
class MeshT>
163 void generateGenericProperty(
const std::string& _entity_t,
const std::string& _name,
164 std::istream& _iff, MeshT& _mesh)
const;
167 template<
class IteratorT>
168 void writeProps(std::ostream& _ostr,
const IteratorT& _begin,
const IteratorT& _end)
const;
171 void trimString(std::string& _string)
const;
174 void extractQuotedText(std::string& _string)
const;
177 bool getCleanLine(std::istream& ifs, std::string& _string,
bool _skipEmptyLines =
true)
const;
180 int verbosity_level_ = 3;
187 #if defined(INCLUDE_TEMPLATES) && !defined(FILEMANAGERT_CC) 188 #include "FileManagerT_impl.hh"
Read/Write mesh data from/to files.
void setVerbosityLevel(int _level)
set minimum level for errors that are printed to std::cerr