#include <ConfigOptions.h>
Inherits Singleton< T >< ConfigOptions >.
Inheritance diagram for ConfigOptions:
Definition at line 9 of file ConfigOptions.h.
Public Member Functions | |
void | deinit () |
template<typename T> | |
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 > |
ConfigOptions::ConfigOptions | ( | ) | [private] |
Definition at line 3 of file ConfigOptions.cpp.
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.
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:
friend class Singleton< ConfigOptions > [friend] |
Definition at line 11 of file ConfigOptions.h.
po::variables_map ConfigOptions::_vm [private] |
map<ConfigOptionName, const char*> ConfigOptions::optionsMap [private] |