Data factory manager. More...
#include <arcane/impl/DataFactoryMng.h>
Public Member Functions | |
| DataFactoryMng (IApplication *sm) | |
| void | build () override |
| Builds the instance. | |
| IApplication * | application () |
| ITraceMng * | traceMng () const override |
| Associated trace manager. | |
| void | registerDataStorageFactory (Ref< IDataStorageFactory > factory) override |
| Registers the factory factory. | |
| Ref< IData > | createSimpleDataRef (const String &storage_type, const DataStorageBuildInfo &build_info) override |
| IDataOperation * | createDataOperation (Parallel::eReduceType rt) override |
| Creates an operation performing a reduction of type rt. | |
| Ref< ISerializedData > | createSerializedDataRef (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< ISerializedData > | createEmptySerializedDataRef () override |
| Creates serialized data. | |
| IDataFactory * | deprecatedOldFactory () 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. | |
| 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 |
Private Attributes | |
| IApplication * | m_application |
| IDataFactory * | m_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 |
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.
| Arcane::DataFactoryMng::DataFactoryMng | ( | IApplication * | sm | ) |
Definition at line 48 of file DataFactoryMng.cc.
|
override |
Definition at line 59 of file DataFactoryMng.cc.
|
inline |
Definition at line 55 of file DataFactoryMng.h.
|
overridevirtual |
Builds the instance.
Implements Arcane::IDataFactoryMng.
Definition at line 116 of file DataFactoryMng.cc.
|
overridevirtual |
Creates an operation performing a reduction of type rt.
Implements Arcane::IDataFactoryMng.
Definition at line 86 of file DataFactoryMng.cc.
|
overridevirtual |
Creates serialized data.
The serialized data is empty. It can only be used after calling an ISerializedData::serialize() in ISerializer::ModePut mode.
Implements Arcane::IDataFactoryMng.
Definition at line 107 of file DataFactoryMng.cc.
References Arcane::arcaneCreateEmptySerializedDataRef().
|
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.
Implements Arcane::IDataFactoryMng.
Definition at line 95 of file DataFactoryMng.cc.
References Arcane::arcaneCreateSerializedDataRef().
|
overridevirtual |
Implements Arcane::IDataFactoryMng.
Definition at line 68 of file DataFactoryMng.cc.
|
inlineoverridevirtual |
Retrieves the old factory (obsolete).
Implements Arcane::IDataFactoryMng.
Definition at line 67 of file DataFactoryMng.h.
|
overridevirtual |
Registers the factory factory.
Implements Arcane::IDataFactoryMng.
Definition at line 134 of file DataFactoryMng.cc.
|
overridevirtual |
Associated trace manager.
Implements Arcane::IDataFactoryMng.
Definition at line 125 of file DataFactoryMng.cc.
References Arcane::TraceAccessor::traceMng().
|
private |
Definition at line 71 of file DataFactoryMng.h.
|
private |
Definition at line 73 of file DataFactoryMng.h.
|
private |
Definition at line 72 of file DataFactoryMng.h.