Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::IConfiguration Class Referenceabstract

Interface for a configuration. More...

#include <arcane/core/Configuration.h>

Public Member Functions

virtual ~IConfiguration ()
 Frees resources.
virtual IConfigurationSectioncreateSection (const String &name) const =0
 Creates a configuration section.
virtual IConfigurationSectionmainSection () const =0
 Main section.
virtual void addValue (const String &name, const String &value, Integer priority)=0
 Adds a value to the configuration.
virtual IConfigurationclone () const =0
 Clones this configuration.
virtual void merge (const IConfiguration *c)=0
 Merges this configuration with configuration c.
virtual void dump () const =0
 Displays the values of the configuration parameters via traceMng().
virtual void dump (std::ostream &ostr) const =0
 Displays the values of the configuration parameters to the stream o.

Detailed Description

Interface for a configuration.

Definition at line 61 of file Configuration.h.

Constructor & Destructor Documentation

◆ ~IConfiguration()

virtual Arcane::IConfiguration::~IConfiguration ( )
inlinevirtual

Frees resources.

Definition at line 65 of file Configuration.h.

Member Function Documentation

◆ addValue()

virtual void Arcane::IConfiguration::addValue ( const String & name,
const String & value,
Integer priority )
pure virtual

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.

◆ createSection()

virtual IConfigurationSection * Arcane::IConfiguration::createSection ( const String & name) const
pure virtual

Creates a configuration section.

The returned instance must be destroyed by the delete operator.

◆ mainSection()

virtual IConfigurationSection * Arcane::IConfiguration::mainSection ( ) const
pure virtual

Main section.

The returned instance remains the property of this instance and should not be destroyed.

◆ merge()

virtual void Arcane::IConfiguration::merge ( const IConfiguration * c)
pure virtual

Merges this configuration with configuration c.

If an option exists in both this configuration and c, the one with the lowest priority is kept.


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