Writing mesh files in xmf format. More...
Public Member Functions | |
| XmfMeshWriter (const ServiceBuildInfo &sbi) | |
| virtual void | build (void) |
| Build-level construction of the service. | |
| virtual bool | writeMeshToFile (IMesh *mesh, const String &file_name) |
| Writes a mesh to a file. | |
| bool | xmfWriteHead (void) |
| bool | xmfWriteTail (void) |
| bool | xmfWriteDomainHeader (void) |
| bool | xmfWriteDomainFooter (void) |
| bool | xmfWriteGridHeader (char *, char *) |
| bool | xmfWriteGridFooter (void) |
| bool | xmfWriteTopologyHeader (char *, XdmfInt32) |
| bool | xmfWriteTopologyFooter (void) |
| bool | xmfWriteGeometryHeader (char *Name, XdmfInt32 GeometryType) |
| bool | xmfWriteGeometryFooter (void) |
| bool | xmfWriteDataItemHeader (XdmfInt32[3], XdmfInt32, XdmfInt32) |
| bool | xmfWriteDataItemFooter (void) |
| void | Indent (void) |
| void | IncrementIndent () |
| void | DecrementIndent () |
| Public Member Functions inherited from Arcane::AbstractService | |
| ~AbstractService () override | |
| Destructor. | |
| IServiceInfo * | serviceInfo () const override |
| Access to service information. See IServiceInfo for details. | |
| IBase * | serviceParent () const override |
| Access to the base interface of main Arcane objects. | |
| IService * | serviceInterface () override |
| Returns the low-level IService interface of the service. | |
| Public Member Functions inherited from Arcane::TraceAccessor | |
| TraceAccessor (ITraceMng *m) | |
| Constructs an accessor via the trace manager m. | |
| TraceAccessor (const TraceAccessor &rhs) | |
| Copy constructor. | |
| TraceAccessor & | operator= (const TraceAccessor &rhs) |
| Copy assignment operator. | |
| virtual | ~TraceAccessor () |
| Frees resources. | |
| ITraceMng * | traceMng () const |
| Trace manager. | |
| TraceMessage | info () const |
| Flow for an information message. | |
| TraceMessage | pinfo () const |
| Flow for a parallel information message. | |
| TraceMessage | info (char category) const |
| Flow for an information message of a given category. | |
| TraceMessage | pinfo (char category) const |
| Flow for a parallel information message of a given category. | |
| TraceMessage | info (bool v) const |
| Flow for an information message. | |
| TraceMessage | warning () const |
| Flow for a warning message. | |
| TraceMessage | pwarning () const |
| TraceMessage | error () const |
| Flow for an error message. | |
| TraceMessage | perror () const |
| TraceMessage | log () const |
| Flow for a log message. | |
| TraceMessage | plog () const |
| Flow for a log message. | |
| TraceMessage | logdate () const |
| Flow for a log message preceded by the date. | |
| TraceMessage | fatal () const |
| Flow for a fatal error message. | |
| TraceMessage | pfatal () const |
| Flow for a parallel fatal error message. | |
| TraceMessageDbg | debug (Trace::eDebugLevel=Trace::Medium) const |
| Flow for a debug message. | |
| Trace::eDebugLevel | configDbgLevel () const |
| Debug level of the configuration file. | |
| TraceMessage | info (Int32 verbose_level) const |
| Flow for an information message of a given level. | |
| TraceMessage | linfo () const |
| Flow for an information message with the local information level of this instance. | |
| TraceMessage | linfo (Int32 relative_level) const |
| Flow for an information message with the local information level of this instance. | |
| void | fatalMessage (const StandaloneTraceMessage &o) const |
| Public Member Functions inherited from Arcane::IService | |
| virtual | ~IService () |
| Releases resources. | |
Private Member Functions | |
| void | _switchXmfType (Integer, Array< Integer > &) |
Private Attributes | |
| ofstream | ost |
| int | CurrIndent |
| char * | HeavyDataSetNameString |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::AbstractService | |
| AbstractService (const ServiceBuildInfo &) | |
| Constructor from a ServiceBuildInfo. | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
| Protected Member Functions inherited from Arcane::IService | |
| IService () | |
| Constructor. | |
Writing mesh files in xmf format.
Definition at line 143 of file XmfMeshWriter.cc.
|
inlineexplicit |
Definition at line 149 of file XmfMeshWriter.cc.
|
private |
Definition at line 201 of file XmfMeshWriter.cc.
|
inlinevirtual |
Build-level construction of the service.
This method is called right after the constructor.
Reimplemented from Arcane::AbstractService.
Definition at line 155 of file XmfMeshWriter.cc.
|
inline |
Definition at line 178 of file XmfMeshWriter.cc.
|
inline |
Definition at line 177 of file XmfMeshWriter.cc.
Writes a mesh to a file.
The mesh file path must be writable and the directory must already exist.
| mesh | mesh to save |
| file_name | name of the mesh file. |
| true | in case of error |
| false | if everything is ok. |
Implements Arcane::IMeshWriter.
Definition at line 307 of file XmfMeshWriter.cc.
References Arcane::Array< T >::add(), ARCANE_FATAL, Arcane::String::endsWith(), ENUMERATE_CELL, ENUMERATE_ITEM, ENUMERATE_NODE, Arcane::TraceAccessor::info(), Arcane::platform::isFileReadable(), Arcane::String::localstr(), Arcane::ItemWithNodes::nbNode(), Arcane::ItemWithNodes::node(), Arcane::platform::removeFile(), Arcane::AbstractArray< T >::size(), Arcane::Convert::toDouble(), Arcane::Item::type(), and Arcane::Item::uniqueId().
|
private |
Definition at line 188 of file XmfMeshWriter.cc.
|
private |
Definition at line 189 of file XmfMeshWriter.cc.
|
private |
Definition at line 186 of file XmfMeshWriter.cc.