18#ifndef CUPT_CONFIG_SEEN
19#define CUPT_CONFIG_SEEN
36 internal::ConfigImpl* __impl;
61 void setScalar(
const string& optionName,
const string& value);
67 void setList(
const string& optionName,
const string& value);
73 vector< string >
getList(
const string& optionName)
const;
83 bool getBool(
const string& optionName)
const;
93 string getPath(
const string& optionName)
const;
stores library's configuration variables
Definition: config.hpp:35
ssize_t getInteger(const string &optionName) const
gets converted to integer value of the scalar option
vector< string > getConfigurationPartPaths(const string &optionName) const
gets paths of non-ignored configuration part files
void setScalar(const string &optionName, const string &value)
sets new value for the scalar option
string getPath(const string &optionName) const
gets resolved value of the path variable
virtual ~Config()
destructor
vector< string > getScalarOptionNames() const
returns scalar option names
vector< string > getList(const string &optionName) const
gets contents of the list variable
bool getBool(const string &optionName) const
gets converted to boolean value of the scalar option
Config & operator=(const Config &other)
assignment operator
vector< string > getListOptionNames() const
returns list option names
string getString(const string &optionName) const
gets value of the scalar option
void setList(const string &optionName, const string &value)
appends new element to the value of the list option
Config(const Config &other)
copy constructor