#include <configuration.h>
Classes | |
struct | Item |
class | MatchAgainstConfig |
match a string against a configurable list of patterns More... | |
Public Member Functions | |
Configuration (const Item *Root) | |
Configuration () | |
~Configuration () | |
void | Clear (const std::string &Name) |
void | Clear (std::string const &List, std::string const &Value) |
void | Clear (std::string const &List, int const &Value) |
void | CndSet (const char *Name, const std::string &Value) |
void | CndSet (const char *Name, const int Value) |
void | Dump () |
void | Dump (std::ostream &str) |
void | Dump (std::ostream &str, char const *const root, char const *const format, bool const emptyValue) |
bool | Exists (const std::string &Name) const |
bool | Exists (const char *Name) const |
bool | ExistsAny (const char *Name) const |
std::string | Find (const char *Name, const char *Default=0) const |
std::string | Find (std::string const &Name, const char *Default=0) const |
std::string | Find (std::string const &Name, std::string const &Default) const |
std::string | FindAny (const char *Name, const char *Default=0) const |
bool | FindB (const char *Name, bool const &Default=false) const |
bool | FindB (std::string const &Name, bool const &Default=false) const |
std::string | FindDir (const char *Name, const char *Default=0) const |
std::string | FindFile (const char *Name, const char *Default=0) const |
int | FindI (const char *Name, int const &Default=0) const |
int | FindI (std::string const &Name, int const &Default=0) const |
std::vector< std::string > | FindVector (const char *Name) const |
std::vector< std::string > | FindVector (std::string const &Name) const |
void | Set (const std::string &Name, const std::string &Value) |
void | Set (const char *Name, const std::string &Value) |
void | Set (const char *Name, const int &Value) |
const Item * | Tree (const char *Name) const |
Private Member Functions | |
Item * | Lookup (Item *Head, const char *S, unsigned long const &Len, bool const &Create) |
Item * | Lookup (const char *Name, const bool &Create) |
const Item * | Lookup (const char *Name) const |
Private Attributes | |
Item * | Root |
bool | ToFree |
Configuration::Configuration | ( | const Item * | Root | ) |
Configuration::Configuration | ( | ) |
Configuration::~Configuration | ( | ) |
void Configuration::Clear | ( | const std::string & | Name | ) |
void Configuration::Clear | ( | std::string const & | List, |
std::string const & | Value | ||
) |
void Configuration::Clear | ( | std::string const & | List, |
int const & | Value | ||
) |
void Configuration::CndSet | ( | const char * | Name, |
const std::string & | Value | ||
) |
void Configuration::CndSet | ( | const char * | Name, |
const int | Value | ||
) |
|
inline |
void Configuration::Dump | ( | std::ostream & | str | ) |
void Configuration::Dump | ( | std::ostream & | str, |
char const *const | root, | ||
char const *const | format, | ||
bool const | emptyValue | ||
) |
|
inline |
bool Configuration::Exists | ( | const char * | Name | ) | const |
bool Configuration::ExistsAny | ( | const char * | Name | ) | const |
std::string Configuration::Find | ( | const char * | Name, |
const char * | Default = 0 |
||
) | const |
|
inline |
|
inline |
std::string Configuration::FindAny | ( | const char * | Name, |
const char * | Default = 0 |
||
) | const |
bool Configuration::FindB | ( | const char * | Name, |
bool const & | Default = false |
||
) | const |
|
inline |
std::string Configuration::FindDir | ( | const char * | Name, |
const char * | Default = 0 |
||
) | const |
std::string Configuration::FindFile | ( | const char * | Name, |
const char * | Default = 0 |
||
) | const |
int Configuration::FindI | ( | const char * | Name, |
int const & | Default = 0 |
||
) | const |
|
inline |
std::vector<std::string> Configuration::FindVector | ( | const char * | Name | ) | const |
|
inline |
References FindVector().
Referenced by FindVector().
|
private |
|
inlineprivate |
|
inline |
void Configuration::Set | ( | const char * | Name, |
const std::string & | Value | ||
) |
void Configuration::Set | ( | const char * | Name, |
const int & | Value | ||
) |
|
inline |
|
private |
|
private |