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

Data factory manager. More...

#include <arcane/impl/DataFactoryMng.h>

Inheritance diagram for Arcane::DataFactoryMng:
Collaboration diagram for Arcane::DataFactoryMng:

Public Member Functions

 DataFactoryMng (IApplication *sm)
void build () override
 Builds the instance.
IApplicationapplication ()
ITraceMngtraceMng () const override
 Associated trace manager.
void registerDataStorageFactory (Ref< IDataStorageFactory > factory) override
 Registers the factory factory.
Ref< IDatacreateSimpleDataRef (const String &storage_type, const DataStorageBuildInfo &build_info) override
IDataOperationcreateDataOperation (Parallel::eReduceType rt) override
 Creates an operation performing a reduction of type rt.
Ref< ISerializedDatacreateSerializedDataRef (eDataType data_type, Int64 memory_size, Integer nb_dim, Int64 nb_element, Int64 nb_base_element, bool is_multi_size, Int64ConstArrayView extents) override
 Creates serialized data.
Ref< ISerializedDatacreateEmptySerializedDataRef () override
 Creates serialized data.
IDataFactorydeprecatedOldFactory () const override
 Retrieves the old factory (obsolete).
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

Private Attributes

IApplicationm_application
IDataFactorym_old_factory
std::map< String, Ref< IDataStorageFactory > > m_factories

Additional Inherited Members

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

Detailed Description

Data factory manager.

Factories are registered via the registerDataStorageFactory() method.

TODO: remove the use of 'IApplication' when we no longer need 'm_old_factory'.

Definition at line 43 of file DataFactoryMng.h.

Constructor & Destructor Documentation

◆ DataFactoryMng()

Arcane::DataFactoryMng::DataFactoryMng ( IApplication * sm)

Definition at line 48 of file DataFactoryMng.cc.

◆ ~DataFactoryMng()

Arcane::DataFactoryMng::~DataFactoryMng ( )
override

Definition at line 59 of file DataFactoryMng.cc.

Member Function Documentation

◆ application()

IApplication * Arcane::DataFactoryMng::application ( )
inline

Definition at line 55 of file DataFactoryMng.h.

◆ build()

void Arcane::DataFactoryMng::build ( )
overridevirtual

Builds the instance.

Implements Arcane::IDataFactoryMng.

Definition at line 116 of file DataFactoryMng.cc.

◆ createDataOperation()

IDataOperation * Arcane::DataFactoryMng::createDataOperation ( Parallel::eReduceType rt)
overridevirtual

Creates an operation performing a reduction of type rt.

Implements Arcane::IDataFactoryMng.

Definition at line 86 of file DataFactoryMng.cc.

◆ createEmptySerializedDataRef()

Ref< ISerializedData > Arcane::DataFactoryMng::createEmptySerializedDataRef ( )
overridevirtual

Creates serialized data.

The serialized data is empty. It can only be used after calling an ISerializedData::serialize() in ISerializer::ModePut mode.

Deprecated
Use arcaneCreateEmptySerializedDataRef() instead.

Implements Arcane::IDataFactoryMng.

Definition at line 107 of file DataFactoryMng.cc.

References Arcane::arcaneCreateEmptySerializedDataRef().

Here is the call graph for this function:

◆ createSerializedDataRef()

Ref< ISerializedData > Arcane::DataFactoryMng::createSerializedDataRef ( eDataType data_type,
Int64 memory_size,
Integer nb_dim,
Int64 nb_element,
Int64 nb_base_element,
bool is_multi_size,
Int64ConstArrayView dimensions )
overridevirtual

Creates serialized data.

The arrays dimensions and values are not duplicated and must not be modified while the serialized object is in use.

The data_type must be one of the types: DT_Byte, DT_Int16, DT_Int32, DT_Int64, or DT_Real.

Deprecated
Use arcaneCreateSerializedDataRef() instead

Implements Arcane::IDataFactoryMng.

Definition at line 95 of file DataFactoryMng.cc.

References Arcane::arcaneCreateSerializedDataRef().

Here is the call graph for this function:

◆ createSimpleDataRef()

Ref< IData > Arcane::DataFactoryMng::createSimpleDataRef ( const String & storage_type,
const DataStorageBuildInfo & build_info )
overridevirtual

Implements Arcane::IDataFactoryMng.

Definition at line 68 of file DataFactoryMng.cc.

◆ deprecatedOldFactory()

IDataFactory * Arcane::DataFactoryMng::deprecatedOldFactory ( ) const
inlineoverridevirtual

Retrieves the old factory (obsolete).

Implements Arcane::IDataFactoryMng.

Definition at line 67 of file DataFactoryMng.h.

◆ registerDataStorageFactory()

void Arcane::DataFactoryMng::registerDataStorageFactory ( Ref< IDataStorageFactory > factory)
overridevirtual

Registers the factory factory.

Implements Arcane::IDataFactoryMng.

Definition at line 134 of file DataFactoryMng.cc.

◆ traceMng()

ITraceMng * Arcane::DataFactoryMng::traceMng ( ) const
overridevirtual

Associated trace manager.

Implements Arcane::IDataFactoryMng.

Definition at line 125 of file DataFactoryMng.cc.

References Arcane::TraceAccessor::traceMng().

Here is the call graph for this function:

Member Data Documentation

◆ m_application

IApplication* Arcane::DataFactoryMng::m_application
private

Definition at line 71 of file DataFactoryMng.h.

◆ m_factories

std::map<String, Ref<IDataStorageFactory> > Arcane::DataFactoryMng::m_factories
private

Definition at line 73 of file DataFactoryMng.h.

◆ m_old_factory

IDataFactory* Arcane::DataFactoryMng::m_old_factory
private

Definition at line 72 of file DataFactoryMng.h.


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