![]() |
Public API Reference |
#include <config.h>
Public Methods | |
| void | SetLong (long l) |
| Assign a long. More... | |
| void | SetBool (bool b) |
| Assign a bool. More... | |
| void | SetFloat (float f) |
| Assign a float. More... | |
| void | SetString (const char *s) |
| Assign a string. More... | |
| void | SetCommand () |
| Assign a command. More... | |
| long | GetLong () const |
| Retrieve a long. More... | |
| bool | GetBool () const |
| Retrieve a bool. More... | |
| float | GetFloat () const |
| Retrieve a float. More... | |
| const char * | GetString () const |
| Retrieve a string. More... | |
Be aware that requesting another type than the containing one will trigger an assertion!
Definition at line 49 of file config.h.
|
|
Retrieve a bool.
Definition at line 109 of file config.h. References CSVAR_BOOL. |
|
|
Retrieve a float.
Definition at line 115 of file config.h. References CSVAR_FLOAT. |
|
|
Retrieve a long.
Definition at line 103 of file config.h. References CSVAR_LONG. |
|
|
Retrieve a string.
Definition at line 121 of file config.h. References CSVAR_STRING. |
|
|
Assign a bool.
Definition at line 72 of file config.h. References CSVAR_BOOL, and CSVAR_STRING. |
|
|
Assign a command.
Definition at line 96 of file config.h. References CSVAR_CMD, and CSVAR_STRING. |
|
|
Assign a float.
Definition at line 79 of file config.h. References CSVAR_FLOAT, and CSVAR_STRING. |
|
|
Assign a long.
Definition at line 65 of file config.h. References CSVAR_LONG, and CSVAR_STRING. |
|
|
Assign a string.
Definition at line 86 of file config.h. References csStrNew, and CSVAR_STRING. |