Classes | |
struct | conf_node |
Functions | |
salConf::salConf (const char *url, int size) | |
Configuration loader. | |
salConf::~salConf () | |
Destructor. | |
int | salConf::getInt (string option_name) |
Load (int) variable. | |
string | salConf::getString (string option_name) |
Load (string) variable. | |
TTF_Font * | salConf::getFont (string option_uri, string option_size) |
Load (TTF_Font) variable. | |
Uint32 | salConf::getColor (string color) |
Load (Uint32) variable (Color code). | |
Uint32 | salConf::convert_color (string color) |
Convert color. |
Uint32 salConf::convert_color | ( | string | color | ) | [private, inherited] |
Convert color.
color | Name of color. |
Definition at line 183 of file SAL_config.cpp.
Referenced by salConf::getColor().
Uint32 salConf::getColor | ( | string | option_name | ) | [inherited] |
Load (Uint32) variable (Color code).
option_name | variable name. |
Definition at line 160 of file SAL_config.cpp.
References salConf::conf_nodes, salConf::convert_color(), and salConf::length.
Referenced by SAL().
TTF_Font * salConf::getFont | ( | string | option_uri, | |
string | option_size | |||
) | [inherited] |
Load (TTF_Font) variable.
option_uri | Url to ttf file. | |
option_size | Font size(pt). |
Definition at line 134 of file SAL_config.cpp.
References salConf::conf_nodes, salConf::length, and salLoadFont.
Referenced by SAL().
int salConf::getInt | ( | string | option_name | ) | [inherited] |
Load (int) variable.
option_name | variable name. |
Definition at line 93 of file SAL_config.cpp.
References salConf::conf_nodes, and salConf::length.
Referenced by SAL().
string salConf::getString | ( | string | option_name | ) | [inherited] |
Load (string) variable.
option_name | variable name. |
Definition at line 113 of file SAL_config.cpp.
References salConf::conf_nodes, and salConf::length.
Referenced by SAL().
salConf::salConf | ( | const char * | url, | |
int | size | |||
) | [inherited] |
Configuration loader.
Class that can load SAL style configuration files.
Definition at line 41 of file SAL_config.cpp.
References salConf::conf_nodes, salConf::length, and conf_node::value.
salConf::~salConf | ( | ) | [inherited] |