Configuration file readers. More...
#include <arcane/impl/ConfigurationReader.h>
Public Types | |
| enum | Priority { P_CaseDocument = 10 , P_TimeLoop = 50 , P_Global = 100 , P_GlobalRuntime = 110 } |
Public Member Functions | |
| ConfigurationReader (ITraceMng *tm, IConfiguration *config) | |
| void | addValuesFromXmlNode (const XmlNode &element, Integer priority) |
| Adds values to the configuration. | |
| void | addValuesFromJSON (const JSONValue &jv, Integer priority) |
| Adds values to the configuration. | |
| 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 Member Functions | |
| void | _addValuesFromJSON (const JSONValue &jv, Integer priority, const String &base_name) |
Private Attributes | |
| IConfiguration * | m_configuration |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Configuration file readers.
Definition at line 37 of file ConfigurationReader.h.
| enum Arcane::ConfigurationReader::Priority |
Definition at line 42 of file ConfigurationReader.h.
|
inline |
Definition at line 52 of file ConfigurationReader.h.
|
private |
Definition at line 61 of file ConfigurationReader.cc.
Adds values to the configuration.
Adds to the configuration the values contained in the child fields of jv.
Array elements are not considered. The call is recursive and the children of jv are considered. This is equivalent to creating a subsection in the configuration.
The IConfiguration::addValue() method is called for each value with the priority priority.
Definition at line 85 of file ConfigurationReader.cc.
Referenced by Arcane::Application::initialize().
| void Arcane::ConfigurationReader::addValuesFromXmlNode | ( | const XmlNode & | element, |
| Integer | priority ) |
Adds values to the configuration.
Adds to the configuration the values contained in the child elements of element. The elements considered are those of the following form:
The IConfiguration::addValue() method is called for each value with the priority priority.
Definition at line 29 of file ConfigurationReader.cc.
References Arcane::XmlNode::attrValue(), Arcane::XmlNode::children(), Arcane::Array< T >::clear(), Arcane::String::null(), Arcane::TraceAccessor::pwarning(), and Arcane::String::split().
Referenced by Arcane::Application::initialize(), Arcane::SubDomain::initialize(), and Arcane::TimeLoopReader::readTimeLoops().
|
private |
Definition at line 86 of file ConfigurationReader.h.