|
| Config (const Config &conf) |
|
bool | find (const std::string §ion, const std::string &key="") const |
|
bool | erase (const std::string §ion, const std::string &key="") |
|
bool | writeToStream (std::ostream &out, Scope scope_mask) const |
|
int | getCmdline (int argc, char **argv, Scope scope=INSTANCE) |
|
void | getEnv (const std::string &prefix, Scope scope=INSTANCE) |
|
bool | writeToFile (const std::string &filename, Scope scopeMask=(Scope)(GLOBAL|USER|INSTANCE)) const |
|
bool | readFromFile (const std::string &filename, Scope scope=USER) |
|
void | parseStream (std::istream &in, Scope scope) |
|
bool | findSection (const std::string §ion) const |
|
bool | findItem (const std::string §ion, const std::string &key) const |
|
const sec_map & | getSection (const std::string §ion) |
|
Variable | getItem (const std::string §ion, const std::string &key) const |
|
void | setParameterLookup (char s_name, const std::string &l_name, bool value=false) |
|
void | setItem (const std::string §ion, const std::string &key, const Variable &item, Scope scope=INSTANCE) |
|
const conf_map & | getSections () const |
|
|
sigc::signal< void > | sig |
|
sigc::signal< void, const char * > | sige |
|
sigc::signal< void, const std::string &, const std::string & > | sigv |
|
sigc::signal< void, const std::string &, const std::string &, Config & > | sigsv |
|
Definition at line 47 of file config.h.
◆ Config()
varconf::Config::Config |
( |
const Config & |
conf | ) |
|
◆ ~Config()
varconf::Config::~Config |
( |
| ) |
|
|
virtual |
◆ clean()
void varconf::Config::clean |
( |
std::string & |
str | ) |
|
|
static |
◆ erase()
bool varconf::Config::erase |
( |
const std::string & |
section, |
|
|
const std::string & |
key = "" |
|
) |
| |
◆ find()
bool varconf::Config::find |
( |
const std::string & |
section, |
|
|
const std::string & |
key = "" |
|
) |
| const |
◆ findItem()
bool varconf::Config::findItem |
( |
const std::string & |
section, |
|
|
const std::string & |
key |
|
) |
| const |
◆ findSection()
bool varconf::Config::findSection |
( |
const std::string & |
section | ) |
const |
◆ getCmdline()
int varconf::Config::getCmdline |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
Scope |
scope = INSTANCE |
|
) |
| |
◆ getEnv()
void varconf::Config::getEnv |
( |
const std::string & |
prefix, |
|
|
Scope |
scope = INSTANCE |
|
) |
| |
◆ getItem()
Variable varconf::Config::getItem |
( |
const std::string & |
section, |
|
|
const std::string & |
key |
|
) |
| const |
◆ getSection()
const sec_map & varconf::Config::getSection |
( |
const std::string & |
section | ) |
|
◆ getSections()
const conf_map & varconf::Config::getSections |
( |
| ) |
const |
◆ inst()
Config * varconf::Config::inst |
( |
| ) |
|
|
static |
◆ parseStream()
void varconf::Config::parseStream |
( |
std::istream & |
in, |
|
|
Scope |
scope |
|
) |
| |
◆ readFromFile()
bool varconf::Config::readFromFile |
( |
const std::string & |
filename, |
|
|
Scope |
scope = USER |
|
) |
| |
◆ setItem()
void varconf::Config::setItem |
( |
const std::string & |
section, |
|
|
const std::string & |
key, |
|
|
const Variable & |
item, |
|
|
Scope |
scope = INSTANCE |
|
) |
| |
◆ setParameterLookup()
void varconf::Config::setParameterLookup |
( |
char |
s_name, |
|
|
const std::string & |
l_name, |
|
|
bool |
value = false |
|
) |
| |
◆ writeToFile()
bool varconf::Config::writeToFile |
( |
const std::string & |
filename, |
|
|
Scope |
scopeMask = (Scope)(GLOBAL | USER | INSTANCE) |
|
) |
| const |
◆ writeToStream()
bool varconf::Config::writeToStream |
( |
std::ostream & |
out, |
|
|
Scope |
scope_mask |
|
) |
| const |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
Config & |
conf |
|
) |
| |
|
friend |
◆ operator==
◆ operator>>
std::istream & operator>> |
( |
std::istream & |
in, |
|
|
Config & |
conf |
|
) |
| |
|
friend |
◆ sig
sigc::signal<void> varconf::Config::sig |
◆ sige
sigc::signal<void, const char*> varconf::Config::sige |
◆ sigsv
sigc::signal<void, const std::string&, const std::string&, Config&> varconf::Config::sigsv |
◆ sigv
sigc::signal<void, const std::string&, const std::string&> varconf::Config::sigv |
The documentation for this class was generated from the following files: