Puma Reference Manual Puma: Puma::Config Class Reference



Puma::Config Class Reference

#include <Puma/Config.h>

List of all members.


Detailed Description

Puma configuration information.

Can read the configuration from file or command line.

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,
  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 ConfOptionOption (unsigned) const
const ConfOptionOption (const char *) const
Flags FlagTable () const


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 
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::Join ( const Config  ) 

void Puma::Config::Read ( const char *  = (const char *) 0  ) 

void Puma::Config::Read ( int &  ,
char **&   
)

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]

unsigned Puma::Config::Options (  )  const [inline]

const ConfOption * Puma::Config::Option ( unsigned  i  )  const [inline]

const ConfOption* Puma::Config::Option ( const char *   )  const

Flags Puma::Config::FlagTable (  )  const [inline]




Puma Reference Manual. Created on 11 Jul 2008.