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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool Puma::Config::CustomConfigFile | ( | int | argc, |
char ** | argv | ||
) |
|
inline |
void Puma::Config::Join | ( | const Config & | ) |
|
inline |
const ConfOption* Puma::Config::Option | ( | const char * | ) | 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 |