Puma Reference Manual Puma::Config Class Reference



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 ConfOptionOption (unsigned) const
 
const ConfOptionOption (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
 

Detailed Description

Puma configuration information.

Can read the configuration from file or command line.

Member Enumeration Documentation

Enumerator
PRE_ASSERT 
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 

Constructor & Destructor Documentation

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

Member Function Documentation

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



Puma Reference Manual. Created on Sun Mar 27 2016.