Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::impl::BasicReaderWriterCommon Class Reference
Inheritance diagram for Arcane::impl::BasicReaderWriterCommon:
Collaboration diagram for Arcane::impl::BasicReaderWriterCommon:

Public Types

enum  eOpenMode { OpenModeRead , OpenModeTruncate , OpenModeAppend }

Public Member Functions

 BasicReaderWriterCommon (IApplication *app, IParallelMng *pm, const String &path, eOpenMode open_mode)
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () 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

Protected Member Functions

String _getMetaDataFileName (Int32 rank) const
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Static Protected Member Functions

static String _getArcaneDBTag ()
static String _getOwnMetatadaFile (const String &path, Int32 rank)
static String _getArcaneDBFile (const String &path, Int32 rank)
static String _getBasicVariableFile (Int32 version, const String &path, Int32 rank)
static String _getBasicGroupFile (const String &path, const String &name, Int32 rank)
static Ref< IDataCompressor_createDeflater (IApplication *app, const String &name)
static Ref< IHashAlgorithm_createHashAlgorithm (IApplication *app, const String &name)
static void _fillUniqueIds (const ItemGroup &group, Array< Int64 > &uids)

Protected Attributes

IApplicationm_application = nullptr
IParallelMngm_parallel_mng = nullptr
eOpenMode m_open_mode = OpenModeRead
String m_path
Integer m_verbose_level = 0

Friends

class BasicGenericReader
class BasicGenericWriter

Detailed Description

Definition at line 209 of file BasicReaderWriter.h.

Member Enumeration Documentation

◆ eOpenMode

enum Arcane::impl::BasicReaderWriterCommon::eOpenMode

Definition at line 218 of file BasicReaderWriter.h.

Constructor & Destructor Documentation

◆ BasicReaderWriterCommon()

Arcane::impl::BasicReaderWriterCommon::BasicReaderWriterCommon ( IApplication * app,
IParallelMng * pm,
const String & path,
eOpenMode open_mode )

Definition at line 125 of file BasicReaderWriter.cc.

Member Function Documentation

◆ _createDeflater()

Ref< IDataCompressor > Arcane::impl::BasicReaderWriterCommon::_createDeflater ( IApplication * app,
const String & name )
staticprotected

Definition at line 86 of file BasicReaderWriter.cc.

◆ _createHashAlgorithm()

Ref< IHashAlgorithm > Arcane::impl::BasicReaderWriterCommon::_createHashAlgorithm ( IApplication * app,
const String & name )
staticprotected

Definition at line 94 of file BasicReaderWriter.cc.

◆ _fillUniqueIds()

void Arcane::impl::BasicReaderWriterCommon::_fillUniqueIds ( const ItemGroup & group,
Array< Int64 > & uids )
staticprotected

Definition at line 102 of file BasicReaderWriter.cc.

◆ _getArcaneDBFile()

String Arcane::impl::BasicReaderWriterCommon::_getArcaneDBFile ( const String & path,
Int32 rank )
staticprotected

Definition at line 51 of file BasicReaderWriter.cc.

◆ _getArcaneDBTag()

String Arcane::impl::BasicReaderWriterCommon::_getArcaneDBTag ( )
staticprotected

Definition at line 35 of file BasicReaderWriter.cc.

◆ _getBasicGroupFile()

String Arcane::impl::BasicReaderWriterCommon::_getBasicGroupFile ( const String & path,
const String & name,
Int32 rank )
staticprotected

Definition at line 74 of file BasicReaderWriter.cc.

◆ _getBasicVariableFile()

String Arcane::impl::BasicReaderWriterCommon::_getBasicVariableFile ( Int32 version,
const String & path,
Int32 rank )
staticprotected

Definition at line 61 of file BasicReaderWriter.cc.

◆ _getMetaDataFileName()

String Arcane::impl::BasicReaderWriterCommon::_getMetaDataFileName ( Int32 rank) const
protected

Definition at line 111 of file BasicReaderWriter.cc.

◆ _getOwnMetatadaFile()

String Arcane::impl::BasicReaderWriterCommon::_getOwnMetatadaFile ( const String & path,
Int32 rank )
staticprotected

Definition at line 41 of file BasicReaderWriter.cc.

◆ BasicGenericReader

friend class BasicGenericReader
friend

Definition at line 213 of file BasicReaderWriter.h.

◆ BasicGenericWriter

friend class BasicGenericWriter
friend

Definition at line 214 of file BasicReaderWriter.h.

Member Data Documentation

◆ m_application

IApplication* Arcane::impl::BasicReaderWriterCommon::m_application = nullptr
protected

Definition at line 232 of file BasicReaderWriter.h.

◆ m_open_mode

eOpenMode Arcane::impl::BasicReaderWriterCommon::m_open_mode = OpenModeRead
protected

Definition at line 234 of file BasicReaderWriter.h.

◆ m_parallel_mng

IParallelMng* Arcane::impl::BasicReaderWriterCommon::m_parallel_mng = nullptr
protected

Definition at line 233 of file BasicReaderWriter.h.

◆ m_path

String Arcane::impl::BasicReaderWriterCommon::m_path
protected

Definition at line 235 of file BasicReaderWriter.h.

◆ m_verbose_level

Integer Arcane::impl::BasicReaderWriterCommon::m_verbose_level = 0
protected

Definition at line 236 of file BasicReaderWriter.h.


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