Eidolon
Public Member Functions | Protected Types | Protected Attributes | Private Member Functions | Friends | List of all members
Config Class Reference

#include <RenderTypes.h>

Collaboration diagram for Config:
Collaboration graph

Public Member Functions

 Config ()
 
void set (const char *group, const char *name, const char *value)
 
void set (const char *name, const char *value)
 
bool hasValue (const char *group, const char *name) const
 
bool hasValue (const char *name) const
 
const char * get (const char *group, const char *name)
 
const char * get (const char *name)
 
std::string toString ()
 

Protected Types

typedef std::pair< std::string, std::string > strpair
 
typedef std::map< strpair, std::string > configmap
 

Protected Attributes

configmap map
 

Private Member Functions

strpair getPair (const char *group, const char *name) const
 

Friends

std::ostream & operator<< (std::ostream &out, const Config *c)
 

Detailed Description

Stores configuration values derived from arguments and config files. Values are always stored as strings keyed to (group,name) pairs, where group is the category the value is a member of. Categories may include anything depending on context, `platformID' is the group for per-platform config values with "All" containing default values for all platforms. Other groups include "args" for command line arguments, "vars" for variable specified on the command line, and `RenderParamGroup' containing values for initializing the renderer. Group and name values are NOT case sensitive.

Member Typedef Documentation

◆ configmap

typedef std::map<strpair,std::string> configmap
protected

◆ strpair

typedef std::pair<std::string,std::string> strpair
protected

Constructor & Destructor Documentation

◆ Config()

Config ( )
inline

Member Function Documentation

◆ get() [1/2]

const char* get ( const char *  group,
const char *  name 
)
inline

◆ get() [2/2]

const char* get ( const char *  name)
inline

◆ getPair()

strpair getPair ( const char *  group,
const char *  name 
) const
inlineprivate
Here is the call graph for this function:

◆ hasValue() [1/2]

bool hasValue ( const char *  group,
const char *  name 
) const
inline

◆ hasValue() [2/2]

bool hasValue ( const char *  name) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set() [1/2]

void set ( const char *  group,
const char *  name,
const char *  value 
)
inline

◆ set() [2/2]

void set ( const char *  name,
const char *  value 
)
inline

◆ toString()

std::string toString ( )
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const Config c 
)
friend

Member Data Documentation

◆ map

configmap map
protected

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