MinVR  0.9.0
A multi-platform virtual reality library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
MinVR::ConfigMap Class Reference

Public Member Functions

 ConfigMap ()
 Creates an empty map. More...
 
 ConfigMap (const std::string &filename)
 Creates a map by reading in the config file. More...
 
 ConfigMap (int argc, char **argv, 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

MinVR::ConfigMap::ConfigMap ( )
inline
MinVR::ConfigMap::ConfigMap ( const std::string &  filename)
inline
MinVR::ConfigMap::ConfigMap ( int  argc,
char **  argv,
bool  exitOnUnrecognizedArgument 
)

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

virtual MinVR::ConfigMap::~ConfigMap ( )
inlinevirtual

Member Function Documentation

bool MinVR::ConfigMap::containsKey ( const std::string &  keyString)
void MinVR::ConfigMap::debugPrint ( )
template<class VALTYPE >
VALTYPE MinVR::ConfigMap::get ( std::string  keyString,
const VALTYPE &  defaultVal 
)
inline
std::string MinVR::ConfigMap::get ( QUOTED_STRING  keyString,
QUOTED_STRING  defaultVal 
)
inline
std::string MinVR::ConfigMap::get ( QUOTED_STRING  keyString,
std::string  defaultVal 
)
inline
std::string MinVR::ConfigMap::get ( std::string  keyString,
QUOTED_STRING  defaultVal 
)
inline
std::string MinVR::ConfigMap::get ( std::string  keyString,
std::string  defaultVal 
)
inline
std::string MinVR::ConfigMap::getValue ( const std::string &  keyString)
void MinVR::ConfigMap::printArgumentHelpAndExit ( const std::string &  programName)
bool MinVR::ConfigMap::readFile ( const std::string &  filename)
template<class T >
bool MinVR::ConfigMap::retypeString ( const std::string &  str,
T &  val 
)
inline
void MinVR::ConfigMap::set ( const std::string &  key,
const std::string &  value 
)

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