Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::MeshReaderMng Class Reference

Mesh reader manager. More...

#include <arcane/core/MeshReaderMng.h>

Collaboration diagram for Arcane::MeshReaderMng:

Classes

class  Impl

Public Member Functions

 MeshReaderMng (ISubDomain *sd)
 MeshReaderMng (const MeshReaderMng &)=delete
const MeshReaderMng & operator= (const MeshReaderMng &)=delete
IMeshreadMesh (const String &mesh_name, const String &file_name)
 Reads the mesh whose file name is file_name.
IMeshreadMesh (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.

Private Attributes

Implm_p

Detailed Description

Mesh reader manager.

Definition at line 33 of file MeshReaderMng.h.

Constructor & Destructor Documentation

◆ MeshReaderMng()

Arcane::MeshReaderMng::MeshReaderMng ( ISubDomain * sd)

Definition at line 78 of file MeshReaderMng.cc.

◆ ~MeshReaderMng()

Arcane::MeshReaderMng::~MeshReaderMng ( )

Definition at line 87 of file MeshReaderMng.cc.

Member Function Documentation

◆ isUseMeshUnit()

bool Arcane::MeshReaderMng::isUseMeshUnit ( ) const

Indicates whether the unit system present in the file is used.

Definition at line 180 of file MeshReaderMng.cc.

◆ readMesh() [1/2]

IMesh * Arcane::MeshReaderMng::readMesh ( const String & mesh_name,
const String & file_name )

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readMesh() [2/2]

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().

Here is the call graph for this function:

◆ setUseMeshUnit()

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.

Member Data Documentation

◆ m_p

Impl* Arcane::MeshReaderMng::m_p
private

Definition at line 84 of file MeshReaderMng.h.


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