ConfigOptions Class Reference

#include <ConfigOptions.h>

Inherits Singleton< T >< ConfigOptions >.

Inheritance diagram for ConfigOptions:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 9 of file ConfigOptions.h.

Public Member Functions

void deinit ()
template<typename T>
get (ConfigOptionName option)
void init ()
bool load (string filename)

Private Member Functions

 ConfigOptions ()
void createOptionsMap ()

Private Attributes

po::variables_map _vm
map< ConfigOptionName, const
char * > 
optionsMap

Friends

class Singleton< ConfigOptions >


Constructor & Destructor Documentation

ConfigOptions::ConfigOptions (  )  [private]

Definition at line 3 of file ConfigOptions.cpp.


Member Function Documentation

void ConfigOptions::createOptionsMap (  )  [private]

Definition at line 18 of file ConfigOptions.cpp.

References COLOR_DEPTH, FONT, HEIGHT, MAP, optionsMap, and WIDTH.

Referenced by init().

Here is the caller graph for this function:

void ConfigOptions::deinit (  ) 

Definition at line 13 of file ConfigOptions.cpp.

template<typename T>
T ConfigOptions::get ( ConfigOptionName  option  ) 

Definition at line 30 of file ConfigOptions.h.

References _vm, and optionsMap.

Referenced by Display::init().

Here is the caller graph for this function:

void ConfigOptions::init (  ) 

Definition at line 8 of file ConfigOptions.cpp.

References createOptionsMap().

Referenced by XClone::init().

Here is the call graph for this function:

Here is the caller graph for this function:

bool ConfigOptions::load ( string  filename  ) 

Definition at line 27 of file ConfigOptions.cpp.

References _vm, COLOR_DEPTH, FONT, HEIGHT, MAP, optionsMap, and WIDTH.

Referenced by XClone::init().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class Singleton< ConfigOptions > [friend]

Definition at line 11 of file ConfigOptions.h.


Member Data Documentation

po::variables_map ConfigOptions::_vm [private]

Definition at line 25 of file ConfigOptions.h.

Referenced by get(), and load().

map<ConfigOptionName, const char*> ConfigOptions::optionsMap [private]

Definition at line 26 of file ConfigOptions.h.

Referenced by createOptionsMap(), get(), and load().


The documentation for this class was generated from the following files:
Generated on Fri Sep 22 06:00:26 2006 for X-CLONE by  doxygen 1.4.7