12#ifndef ARCANE_CONFIGURATION_H
13#define ARCANE_CONFIGURATION_H
43 virtual Real value(
const String& name,
Real default_value)
const = 0;
44 virtual bool value(
const String& name,
bool default_value)
const = 0;
46 virtual String value(
const String& name,
const char* default_value)
const = 0;
49 virtual Int32 valueAsInt32(
const String& name,
Int32 default_value)
const = 0;
50 virtual Int64 valueAsInt64(
const String& name,
Int64 default_value)
const = 0;
51 virtual Real valueAsReal(
const String& name,
Real default_value)
const = 0;
52 virtual bool valueAsBool(
const String& name,
bool default_value)
const = 0;
53 virtual String valueAsString(
const String& name,
const String& default_value)
const = 0;
111 virtual void dump(std::ostream& ostr)
const = 0;
Arcane configuration file.
virtual IConfiguration * createConfiguration()=0
Creates a new configuration.
virtual IConfiguration * defaultConfiguration() const =0
Default configuration.
virtual ~IConfigurationMng()
Frees resources.
Interface for a configuration section.
virtual ~IConfigurationSection()
Frees resources.
Interface for a configuration.
virtual ~IConfiguration()
Frees resources.
virtual IConfiguration * clone() const =0
Clones this configuration.
virtual IConfigurationSection * mainSection() const =0
Main section.
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.
virtual IConfigurationSection * createSection(const String &name) const =0
Creates a configuration section.
virtual void addValue(const String &name, const String &value, Integer priority)=0
Adds a value to the configuration.
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
Int32 Integer
Type representing an integer.
double Real
Type representing a real number.
std::int32_t Int32
Signed integer type of 32 bits.