Interface for a configuration. More...
#include <arcane/core/Configuration.h>
Public Member Functions | |
| virtual | ~IConfiguration () |
| Frees resources. | |
| virtual IConfigurationSection * | createSection (const String &name) const =0 |
| Creates a configuration section. | |
| virtual IConfigurationSection * | mainSection () const =0 |
| Main section. | |
| virtual void | addValue (const String &name, const String &value, Integer priority)=0 |
| Adds a value to the configuration. | |
| virtual IConfiguration * | clone () 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. | |
Interface for a configuration.
Definition at line 61 of file Configuration.h.
|
inlinevirtual |
Frees resources.
Definition at line 65 of file Configuration.h.
|
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.
|
pure virtual |
Creates a configuration section.
The returned instance must be destroyed by the delete operator.
|
pure virtual |
Main section.
The returned instance remains the property of this instance and should not be destroyed.
|
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.