VRG3D::ConfigMap Class Reference

#include <ConfigMap.H>

List of all members.

Public Member Functions

 ConfigMap (Log *log)
 Creates an empty map.
 ConfigMap (const std::string &filename, Log *log)
 Creates a map by reading in the config file.
 ConfigMap (int argc, char **argv, Log *log, bool exitOnUnrecognizedArgument)
virtual ~ConfigMap ()
void printArgumentHelpAndExit (const std::string &programName)
bool readFile (const std::string &filename)
template<class T>
bool retypeString (const std::string &str, T &val)
template<class VALTYPE>
VALTYPE get (std::string keyString, const VALTYPE &defaultVal)
std::string get (QUOTED_STRING keyString, QUOTED_STRING defaultVal)
std::string get (QUOTED_STRING keyString, std::string defaultVal)
std::string get (std::string keyString, QUOTED_STRING defaultVal)
std::string get (std::string keyString, std::string defaultVal)
bool containsKey (const std::string &keyString)
std::string getValue (const std::string &keyString)
void set (const std::string &key, const std::string &value)
void debugPrint ()


Constructor & Destructor Documentation

VRG3D::ConfigMap::ConfigMap ( Log *  log  )  [inline]

Creates an empty map.

VRG3D::ConfigMap::ConfigMap ( const std::string &  filename,
Log *  log 
) [inline]

Creates a map by reading in the config file.

References readFile().

VRG3D::ConfigMap::ConfigMap ( int  argc,
char **  argv,
Log *  log,
bool  exitOnUnrecognizedArgument 
)

Create a map by reading in arguments that specify files to load and/or individual mappings

virtual VRG3D::ConfigMap::~ConfigMap (  )  [inline, virtual]


Member Function Documentation

void VRG3D::ConfigMap::printArgumentHelpAndExit ( const std::string &  programName  ) 

bool VRG3D::ConfigMap::readFile ( const std::string &  filename  ) 

Referenced by ConfigMap().

template<class T>
bool VRG3D::ConfigMap::retypeString ( const std::string &  str,
T &  val 
) [inline]

Referenced by get().

template<class VALTYPE>
VALTYPE VRG3D::ConfigMap::get ( std::string  keyString,
const VALTYPE &  defaultVal 
) [inline]

std::string VRG3D::ConfigMap::get ( QUOTED_STRING  keyString,
QUOTED_STRING  defaultVal 
) [inline]

std::string VRG3D::ConfigMap::get ( QUOTED_STRING  keyString,
std::string  defaultVal 
) [inline]

std::string VRG3D::ConfigMap::get ( std::string  keyString,
QUOTED_STRING  defaultVal 
) [inline]

std::string VRG3D::ConfigMap::get ( std::string  keyString,
std::string  defaultVal 
) [inline]

bool VRG3D::ConfigMap::containsKey ( const std::string &  keyString  ) 

Referenced by get().

std::string VRG3D::ConfigMap::getValue ( const std::string &  keyString  ) 

Referenced by get().

void VRG3D::ConfigMap::set ( const std::string &  key,
const std::string &  value 
)

void VRG3D::ConfigMap::debugPrint (  ) 


The documentation for this class was generated from the following file:

Generated on Wed Jan 26 06:35:59 2011 for VRG3D by  doxygen 1.5.6