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

Configuration file readers. More...

#include <arcane/impl/ConfigurationReader.h>

Inheritance diagram for Arcane::ConfigurationReader:
Collaboration diagram for Arcane::ConfigurationReader:

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.
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 Member Functions

void _addValuesFromJSON (const JSONValue &jv, Integer priority, const String &base_name)

Private Attributes

IConfigurationm_configuration

Additional Inherited Members

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

Detailed Description

Configuration file readers.

Definition at line 37 of file ConfigurationReader.h.

Member Enumeration Documentation

◆ Priority

enum Arcane::ConfigurationReader::Priority

Definition at line 42 of file ConfigurationReader.h.

Constructor & Destructor Documentation

◆ ConfigurationReader()

Arcane::ConfigurationReader::ConfigurationReader ( ITraceMng * tm,
IConfiguration * config )
inline

Definition at line 52 of file ConfigurationReader.h.

Member Function Documentation

◆ _addValuesFromJSON()

void Arcane::ConfigurationReader::_addValuesFromJSON ( const JSONValue & jv,
Integer priority,
const String & base_name )
private

Definition at line 61 of file ConfigurationReader.cc.

◆ addValuesFromJSON()

void Arcane::ConfigurationReader::addValuesFromJSON ( const JSONValue & jv,
Integer priority )

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().

Here is the caller graph for this function:

◆ addValuesFromXmlNode()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_configuration

IConfiguration* Arcane::ConfigurationReader::m_configuration
private

Definition at line 86 of file ConfigurationReader.h.


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