vegastrike
0.5.1.r1
|
#include <configxml.h>
Public Member Functions | |
VegaConfig (const char *configfile) | |
virtual | ~VegaConfig () |
void | getColor (configNode *node, string name, float color[4], bool have_color=false) |
void | getColor (string section, string name, float color[4], bool have_color=false) |
void | gethColor (string section, string name, float color[4], int hexcolor) |
void | getColor (string name, float color[4], bool have_color=false) |
string | getVariable (string section, string name, string defaultvalue) |
string | getVariable (string section, string subsection, string name, string defaultvalue) |
configNode * | findSection (string section, configNode *startnode) |
configNode * | findEntry (string name, configNode *startnode) |
void | setVariable (configNode *entry, string value) |
bool | setVariable (string section, string name, string value) |
bool | setVariable (string section, string subsection, string name, string value) |
easyDomNode * | Variables () |
virtual void | bindKeys () |
Public Attributes | |
int | axis_axis [MAX_AXIS] |
int | axis_joy [MAX_AXIS] |
bool | axis_inverse [MAX_AXIS] |
float | hatswitch [MAX_HATSWITCHES][MAX_VALUES] |
float | hatswitch_margin [MAX_HATSWITCHES] |
int | hatswitch_axis [MAX_HATSWITCHES] |
int | hatswitch_joystick [MAX_HATSWITCHES] |
Protected Member Functions | |
string | getVariable (configNode *section, string name, string defaultval) |
bool | checkConfig (configNode *node) |
void | doVariables (configNode *node) |
void | checkSection (configNode *node, enum section_t section_type) |
void | checkVar (configNode *node) |
void | doSection (string prefix, configNode *node, enum section_t section_type) |
void | doVar (string prefix, configNode *node) |
void | doColors (configNode *node) |
bool | checkColor (string prefix, configNode *node) |
virtual void | doBindings (configNode *node) |
virtual void | checkBind (configNode *node) |
virtual void | doAxis (configNode *node) |
virtual void | checkHatswitch (int nr, configNode *node) |
Protected Attributes | |
configNode * | variables |
configNode * | bindings |
configNode * | colors |
map< string, string > | map_variables |
map< string, vColor > | map_colors |
int | hs_value_index |
Definition at line 58 of file configxml.h.
|
explicit |
Definition at line 38 of file configxml.cpp.
|
virtual |
Definition at line 51 of file configxml.cpp.
|
inlinevirtual |
Definition at line 91 of file configxml.h.
|
inlineprotectedvirtual |
Definition at line 110 of file configxml.h.
|
protected |
Definition at line 162 of file configxml.cpp.
|
protected |
Definition at line 63 of file configxml.cpp.
|
inlineprotectedvirtual |
Definition at line 112 of file configxml.h.
|
protected |
Definition at line 126 of file configxml.cpp.
|
protected |
Definition at line 151 of file configxml.cpp.
|
inlineprotectedvirtual |
Definition at line 111 of file configxml.h.
|
inlineprotectedvirtual |
Definition at line 109 of file configxml.h.
|
protected |
Definition at line 237 of file configxml.cpp.
|
protected |
Definition at line 103 of file configxml.cpp.
|
protected |
Definition at line 139 of file configxml.cpp.
|
protected |
Definition at line 86 of file configxml.cpp.
configNode * VegaConfig::findEntry | ( | string | name, |
configNode * | startnode | ||
) |
Definition at line 359 of file configxml.cpp.
configNode * VegaConfig::findSection | ( | string | section, |
configNode * | startnode | ||
) |
Definition at line 366 of file configxml.cpp.
void VegaConfig::getColor | ( | configNode * | node, |
string | name, | ||
float | color[4], | ||
bool | have_color = false |
||
) |
Definition at line 332 of file configxml.cpp.
void VegaConfig::getColor | ( | string | section, |
string | name, | ||
float | color[4], | ||
bool | have_color = false |
||
) |
Definition at line 316 of file configxml.cpp.
|
inline |
Definition at line 76 of file configxml.h.
void VegaConfig::gethColor | ( | string | section, |
string | name, | ||
float | color[4], | ||
int | hexcolor | ||
) |
Definition at line 304 of file configxml.cpp.
string VegaConfig::getVariable | ( | string | section, |
string | name, | ||
string | defaultvalue | ||
) |
Definition at line 267 of file configxml.cpp.
string VegaConfig::getVariable | ( | string | section, |
string | subsection, | ||
string | name, | ||
string | defaultvalue | ||
) |
Definition at line 254 of file configxml.cpp.
|
protected |
Definition at line 280 of file configxml.cpp.
void VegaConfig::setVariable | ( | configNode * | entry, |
string | value | ||
) |
Definition at line 382 of file configxml.cpp.
bool VegaConfig::setVariable | ( | string | section, |
string | name, | ||
string | value | ||
) |
Definition at line 389 of file configxml.cpp.
bool VegaConfig::setVariable | ( | string | section, |
string | subsection, | ||
string | name, | ||
string | value | ||
) |
Definition at line 403 of file configxml.cpp.
|
inline |
Definition at line 87 of file configxml.h.
int VegaConfig::axis_axis[MAX_AXIS] |
Definition at line 64 of file configxml.h.
bool VegaConfig::axis_inverse[MAX_AXIS] |
Definition at line 66 of file configxml.h.
int VegaConfig::axis_joy[MAX_AXIS] |
Definition at line 65 of file configxml.h.
|
protected |
Definition at line 95 of file configxml.h.
|
protected |
Definition at line 96 of file configxml.h.
float VegaConfig::hatswitch[MAX_HATSWITCHES][MAX_VALUES] |
Definition at line 69 of file configxml.h.
int VegaConfig::hatswitch_axis[MAX_HATSWITCHES] |
Definition at line 71 of file configxml.h.
int VegaConfig::hatswitch_joystick[MAX_HATSWITCHES] |
Definition at line 72 of file configxml.h.
float VegaConfig::hatswitch_margin[MAX_HATSWITCHES] |
Definition at line 70 of file configxml.h.
|
protected |
Definition at line 99 of file configxml.h.
|
protected |
Definition at line 98 of file configxml.h.
|
protected |
Definition at line 97 of file configxml.h.
|
protected |
Definition at line 94 of file configxml.h.