Puma Reference Manual | Puma::Config Class Reference |
Puma configuration information. More...
#include <Puma/Config.h>
Public Types | |
enum | OPTIONS { PRE_ASSERT = 1, PRE_DEFINE, PRE_UNDEFINE, PRE_LOCK_MACRO, PRE_INCLUDE, CFG_FILE, PROJ_PATH, PROJ_DESTINATION, SET_SUFFIX, SET_EXTENSION, SET_WRITE_PROTECTED, GNU, SET_OPTION, SET_OPTION_ARG } |
Public Member Functions | |
Config (ErrorStream &) | |
Config (const Config &) | |
~Config () | |
Config (ErrorStream &, const char *) | |
Config (ErrorStream &, int &, char **&) | |
Config (ErrorStream &, const char *, int &, char **&) | |
void | Join (const Config &) |
void | Read (const char *=(const char *) 0) |
void | Read (int &, char **&) |
void | Add (const ConfOption *) |
void | Add (const char *) |
void | Add (const char *, const char *) |
void | Add (const char *, const char *, const char *) |
void | Remove (const ConfOption *) |
unsigned | Options () const |
const ConfOption * | Option (unsigned) const |
const ConfOption * | Option (const char *) const |
bool | CustomConfigFile (int argc, char **argv) |
Flags | FlagTable () const |
void | PrintOptions (std::ostream &os) const |
void | PrintOption (OptsParser::Option &o, std::ostream &os) const |
std::string & | ReplaceEnvVars (std::string &s) const |
Puma configuration information.
Can read the configuration from file or command line.
Puma::Config::Config | ( | ErrorStream & | e | ) | [inline] |
Puma::Config::Config | ( | const Config & | c | ) | [inline] |
Puma::Config::~Config | ( | ) | [inline] |
Puma::Config::Config | ( | ErrorStream & | e, |
const char * | file | ||
) | [inline] |
Puma::Config::Config | ( | ErrorStream & | e, |
int & | argc, | ||
char **& | argv | ||
) | [inline] |
Puma::Config::Config | ( | ErrorStream & | e, |
const char * | file, | ||
int & | argc, | ||
char **& | argv | ||
) | [inline] |
void Puma::Config::Add | ( | const ConfOption * | o | ) | [inline] |
void Puma::Config::Add | ( | const char * | n | ) | [inline] |
void Puma::Config::Add | ( | const char * | n, |
const char * | a1 | ||
) | [inline] |
void Puma::Config::Add | ( | const char * | n, |
const char * | a1, | ||
const char * | a2 | ||
) | [inline] |
bool Puma::Config::CustomConfigFile | ( | int | argc, |
char ** | argv | ||
) |
Flags Puma::Config::FlagTable | ( | ) | const [inline] |
void Puma::Config::Join | ( | const Config & | ) |
const ConfOption * Puma::Config::Option | ( | unsigned | i | ) | const [inline] |
const ConfOption* Puma::Config::Option | ( | const char * | ) | const |
unsigned Puma::Config::Options | ( | ) | const [inline] |
void Puma::Config::PrintOption | ( | OptsParser::Option & | o, |
std::ostream & | os | ||
) | const |
void Puma::Config::PrintOptions | ( | std::ostream & | os | ) | const |
void Puma::Config::Read | ( | const char * | = (const char *) 0 | ) |
void Puma::Config::Read | ( | int & | , |
char **& | |||
) |
void Puma::Config::Remove | ( | const ConfOption * | ) |
std::string& Puma::Config::ReplaceEnvVars | ( | std::string & | s | ) | const |