Mesh reader manager. More...
#include <arcane/core/MeshReaderMng.h>
Classes | |
| class | Impl |
Public Member Functions | |
| MeshReaderMng (ISubDomain *sd) | |
| MeshReaderMng (const MeshReaderMng &)=delete | |
| const MeshReaderMng & | operator= (const MeshReaderMng &)=delete |
| IMesh * | readMesh (const String &mesh_name, const String &file_name) |
| Reads the mesh whose file name is file_name. | |
| IMesh * | readMesh (const String &mesh_name, const String &file_name, IParallelMng *parallel_mng) |
| Reads the mesh whose file name is file_name. | |
| void | setUseMeshUnit (bool v) |
| If true, indicates that the unit system possibly present in the file format is used (true by default). | |
| bool | isUseMeshUnit () const |
| Indicates whether the unit system present in the file is used. | |
Mesh reader manager.
Definition at line 33 of file MeshReaderMng.h.
| Arcane::MeshReaderMng::MeshReaderMng | ( | ISubDomain * | sd | ) |
Definition at line 78 of file MeshReaderMng.cc.
| Arcane::MeshReaderMng::~MeshReaderMng | ( | ) |
Definition at line 87 of file MeshReaderMng.cc.
| bool Arcane::MeshReaderMng::isUseMeshUnit | ( | ) | const |
Indicates whether the unit system present in the file is used.
Definition at line 180 of file MeshReaderMng.cc.
Reads the mesh whose file name is file_name.
file_name must have an extension and the reader used is based on this extension. The created mesh is associated with a sequential IParallelMng and will be named mesh_name.
This method throws an exception if the mesh cannot be read.
Definition at line 96 of file MeshReaderMng.cc.
References Arcane::ISubDomain::parallelMng(), readMesh(), and Arcane::IParallelMng::sequentialParallelMng().
Referenced by readMesh().
| IMesh * Arcane::MeshReaderMng::readMesh | ( | const String & | mesh_name, |
| const String & | file_name, | ||
| IParallelMng * | parallel_mng ) |
Reads the mesh whose file name is file_name.
file_name must have an extension and the reader used is based on this extension. The created mesh is associated with the parallelism manager parallel_mng and will be named mesh_name.
This method throws an exception if the mesh cannot be read.
Definition at line 108 of file MeshReaderMng.cc.
References Arcane::IMeshReader::allowExtension(), ARCANE_FATAL, Arcane::String::bytes(), Arcane::IMainFactory::createMesh(), Arcane::IParallelMng::isParallel(), Arcane::IXmlDocumentHolder::loadFromBuffer(), Arcane::ISubDomain::mainFactory(), Arcane::IMeshReader::readMeshFromFile(), Arcane::IMeshReader::RTError, Arcane::IMeshReader::RTOk, Arcane::String::toStdStringView(), and Arcane::IBase::traceMng().
| void Arcane::MeshReaderMng::setUseMeshUnit | ( | bool | v | ) |
If true, indicates that the unit system possibly present in the file format is used (true by default).
This method must be called before calling readMesh() for it to be taken into account.
Definition at line 171 of file MeshReaderMng.cc.