| Puma Reference Manual | Puma: 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 *) |
| unsigned | Options () const |
| const ConfOption * | Option (unsigned) const |
| const ConfOption * | Option (const char *) const |
| 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] |
| 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 **& | |||
| ) |
| std::string& Puma::Config::ReplaceEnvVars | ( | std::string & | s | ) | const |