Cupt
Public Member Functions | List of all members
cupt::Config Class Reference

stores library's configuration variables More...

#include <cupt/config.hpp>

Public Member Functions

 Config ()
 constructor More...
 
virtual ~Config ()
 destructor
 
 Config (const Config &other)
 copy constructor
 
Configoperator= (const Config &other)
 assignment operator
 
vector< string > getScalarOptionNames () const
 returns scalar option names
 
vector< string > getListOptionNames () const
 returns list option names
 
void setScalar (const string &optionName, const string &value)
 sets new value for the scalar option More...
 
void setList (const string &optionName, const string &value)
 appends new element to the value of the list option More...
 
vector< string > getList (const string &optionName) const
 gets contents of the list variable More...
 
string getString (const string &optionName) const
 gets value of the scalar option More...
 
bool getBool (const string &optionName) const
 gets converted to boolean value of the scalar option More...
 
ssize_t getInteger (const string &optionName) const
 gets converted to integer value of the scalar option More...
 
string getPath (const string &optionName) const
 gets resolved value of the path variable More...
 
vector< string > getConfigurationPartPaths (const string &optionName) const
 gets paths of non-ignored configuration part files More...
 

Detailed Description

stores library's configuration variables

Constructor & Destructor Documentation

◆ Config()

cupt::Config::Config ( )

constructor

Reads configuration variables from configuration files.

Member Function Documentation

◆ getBool()

bool cupt::Config::getBool ( const string &  optionName) const

gets converted to boolean value of the scalar option

Parameters
optionName

◆ getConfigurationPartPaths()

vector<string> cupt::Config::getConfigurationPartPaths ( const string &  optionName) const

gets paths of non-ignored configuration part files

Parameters
optionName

◆ getInteger()

ssize_t cupt::Config::getInteger ( const string &  optionName) const

gets converted to integer value of the scalar option

Parameters
optionName

◆ getList()

vector< string > cupt::Config::getList ( const string &  optionName) const

gets contents of the list variable

Parameters
optionName

◆ getPath()

string cupt::Config::getPath ( const string &  optionName) const

gets resolved value of the path variable

Parameters
optionName

◆ getString()

string cupt::Config::getString ( const string &  optionName) const

gets value of the scalar option

Parameters
optionName

◆ setList()

void cupt::Config::setList ( const string &  optionName,
const string &  value 
)

appends new element to the value of the list option

Parameters
optionName
valuenew value element for the option

◆ setScalar()

void cupt::Config::setScalar ( const string &  optionName,
const string &  value 
)

sets new value for the scalar option

Parameters
optionName
valuenew value for the option

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