Public Member Functions | |
| PropertyMng (ITraceMng *tm) | |
| void | build () |
| ITraceMng * | traceMng () const override |
| PropertiesImpl * | getPropertiesImpl (const String &full_name) override |
| Retrieves the list of properties by full name full_name. | |
| void | destroyProperties (const Properties &p) override |
| Deletes the properties referenced by p. | |
| void | registerProperties (const Properties &p) override |
| Registers the properties referenced by p. | |
| void | serialize (ISerializer *serializer) override |
| Performs serialization. | |
| void | writeTo (ByteArray &bytes) override |
| Serializes property information into bytes. | |
| void | readFrom (Span< const Byte > bytes) override |
| Reads the serialized information contained in bytes. | |
| void | print (std::ostream &o) const override |
| Displays the properties and their values on the stream o. | |
| IObservable * | writeObservable () override |
| Observable for writing. | |
| IObservable * | readObservable () override |
| Observable for reading. | |
| 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::IPropertyMng | |
| virtual | ~IPropertyMng () |
| Frees the resources. | |
Static Public Attributes | |
| static const Int32 | SERIALIZE_VERSION = 1 |
Private Types | |
| typedef std::map< String, Properties > | PropertiesMapType |
Private Attributes | |
| PropertiesMapType | m_properties_map |
| VariableArrayByte * | m_property_values_var |
| AutoDetachObservable | m_write_observable |
| AutoDetachObservable | m_read_observable |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Property Manager.
Definition at line 39 of file PropertyMng.cc.
|
private |
Definition at line 75 of file PropertyMng.cc.
|
explicit |
Definition at line 107 of file PropertyMng.cc.
|
override |
Definition at line 117 of file PropertyMng.cc.
| void Arcane::PropertyMng::build | ( | ) |
Definition at line 129 of file PropertyMng.cc.
|
overridevirtual |
Deletes the properties referenced by p.
Implements Arcane::IPropertyMng.
Definition at line 160 of file PropertyMng.cc.
References Arcane::Properties::fullName().
|
overridevirtual |
Retrieves the list of properties by full name full_name.
This method must only be called by the Properties class. To retrieve an instance, the Properties constructor must be used.
Implements Arcane::IPropertyMng.
Definition at line 137 of file PropertyMng.cc.
|
overridevirtual |
Displays the properties and their values on the stream o.
Implements Arcane::IPropertyMng.
Definition at line 264 of file PropertyMng.cc.
References Arcane::Properties::fullName(), and Arcane::Properties::print().
Reads the serialized information contained in bytes.
The bytes array must have been created by a call to writeTo().
Implements Arcane::IPropertyMng.
Definition at line 245 of file PropertyMng.cc.
References Arcane::TraceAccessor::info(), Arcane::BasicSerializer::initFromBuffer(), serialize(), and Arcane::BasicSerializer::setSerializeTypeInfo().
|
inlineoverridevirtual |
Observable for reading.
The observers registered in this observable are called at the end of readFrom().
Implements Arcane::IPropertyMng.
Definition at line 70 of file PropertyMng.cc.
|
overridevirtual |
Registers the properties referenced by p.
Implements Arcane::IPropertyMng.
Definition at line 150 of file PropertyMng.cc.
References Arcane::Properties::fullName().
|
overridevirtual |
Performs serialization.
Implements Arcane::IPropertyMng.
Definition at line 171 of file PropertyMng.cc.
References Arcane::ISerializer::get(), Arcane::ISerializer::getInt32(), Arcane::ISerializer::getInt64(), Arcane::ISerializer::mode(), Arcane::ISerializer::ModeGet, Arcane::ISerializer::ModePut, Arcane::ISerializer::put(), Arcane::ISerializer::putInt32(), Arcane::ISerializer::putInt64(), Arcane::TraceAccessor::pwarning(), Arcane::ISerializer::reserve(), Arcane::ISerializer::reserveInt32(), Arcane::ISerializer::reserveInt64(), and Arcane::Properties::serialize().
Referenced by readFrom(), and writeTo().
|
inlineoverridevirtual |
Implements Arcane::IPropertyMng.
Definition at line 58 of file PropertyMng.cc.
|
inlineoverridevirtual |
Observable for writing.
The observers registered in this observable are called at the beginning of writeTo().
Implements Arcane::IPropertyMng.
Definition at line 69 of file PropertyMng.cc.
|
overridevirtual |
Serializes property information into bytes.
Implements Arcane::IPropertyMng.
Definition at line 224 of file PropertyMng.cc.
References Arcane::BasicSerializer::allocateBuffer(), Arcane::TraceAccessor::info(), Arcane::ISerializer::ModePut, serialize(), Arcane::BasicSerializer::setMode(), Arcane::BasicSerializer::setSerializeTypeInfo(), and Arcane::SpanImpl< T, SizeType, Extent >::size().
|
private |
Definition at line 77 of file PropertyMng.cc.
|
private |
Definition at line 78 of file PropertyMng.cc.
|
private |
Definition at line 80 of file PropertyMng.cc.
|
private |
Definition at line 79 of file PropertyMng.cc.
|
static |
Definition at line 45 of file PropertyMng.cc.