Classes | |
| struct | ConfigValue |
Public Member Functions | |
| Configuration (ConfigurationMng *cm, ITraceMng *tm) | |
| IConfigurationSection * | createSection (const String &name) const override |
| Creates a configuration section. | |
| IConfigurationSection * | mainSection () const override |
| Main section. | |
| void | addValue (const String &name, const String &value, Integer priority) override |
| Adds a value to the configuration. | |
| IConfiguration * | clone () const override |
| Clones this configuration. | |
| void | merge (const IConfiguration *c) override |
| Merges this configuration with configuration c. | |
| void | dump () const override |
| Displays the values of the configuration parameters via traceMng(). | |
| void | dump (std::ostream &o) const override |
| Displays the values of the configuration parameters to the stream o. | |
| template<typename T> | |
| T | getValue (const String &base_name, const String &name, T default_value) const |
| 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::IConfiguration | |
| virtual | ~IConfiguration () |
| Frees resources. | |
Private Types | |
| typedef std::map< String, ConfigValue > | KeyValueMap |
Private Member Functions | |
| void | _checkAdd (const String &name, const String &value, Integer priority) |
Static Private Member Functions | |
| static const char * | _typeName (Int32 *) |
| static const char * | _typeName (Int64 *) |
| static const char * | _typeName (Real *) |
| static const char * | _typeName (bool *) |
| static const char * | _typeName (String *) |
Private Attributes | |
| ConfigurationMng * | m_configuration_mng |
| KeyValueMap | m_values |
| ScopedPtrT< IConfigurationSection > | m_main_section |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Definition at line 126 of file Configuration.cc.
|
private |
Definition at line 145 of file Configuration.cc.
| Arcane::Configuration::Configuration | ( | ConfigurationMng * | cm, |
| ITraceMng * | tm ) |
Definition at line 268 of file Configuration.cc.
|
inlineprivate |
Definition at line 195 of file Configuration.cc.
|
inlinestaticprivate |
Definition at line 192 of file Configuration.cc.
|
inlinestaticprivate |
Definition at line 189 of file Configuration.cc.
|
inlinestaticprivate |
Definition at line 190 of file Configuration.cc.
|
inlinestaticprivate |
Definition at line 191 of file Configuration.cc.
|
inlinestaticprivate |
Definition at line 193 of file Configuration.cc.
|
overridevirtual |
Adds a value to the configuration.
Adds the value value for the name name to the configuration. The new value will have priority priority. If a value for name name already exists, it is replaced by value if priority is lower than the current priority.
Implements Arcane::IConfiguration.
Definition at line 336 of file Configuration.cc.
|
overridevirtual |
Clones this configuration.
Implements Arcane::IConfiguration.
Definition at line 279 of file Configuration.cc.
References Arcane::TraceAccessor::traceMng().
|
inlineoverridevirtual |
Creates a configuration section.
The returned instance must be destroyed by the delete operator.
Implements Arcane::IConfiguration.
Definition at line 153 of file Configuration.cc.
|
overridevirtual |
Displays the values of the configuration parameters via traceMng().
Implements Arcane::IConfiguration.
Definition at line 294 of file Configuration.cc.
References dump(), and Arcane::TraceAccessor::info().
Referenced by dump().
|
overridevirtual |
Displays the values of the configuration parameters to the stream o.
Implements Arcane::IConfiguration.
Definition at line 305 of file Configuration.cc.
|
inline |
Definition at line 168 of file Configuration.cc.
|
inlineoverridevirtual |
Main section.
The returned instance remains the property of this instance and should not be destroyed.
Implements Arcane::IConfiguration.
Definition at line 158 of file Configuration.cc.
|
overridevirtual |
Merges this configuration with configuration c.
If an option exists in both this configuration and c, the one with the lowest priority is kept.
Implements Arcane::IConfiguration.
Definition at line 319 of file Configuration.cc.
References ARCANE_CHECK_POINTER.
|
private |
Definition at line 215 of file Configuration.cc.
|
private |
Definition at line 217 of file Configuration.cc.
|
private |
Definition at line 216 of file Configuration.cc.