csVariant Struct Reference
[Utilities]
Variant, means that type of contained data is set at runtime.
More...
#include <config.h>
Public Methods | |
void | SetLong (long l) |
Assign a long. | |
void | SetBool (bool b) |
Assign a bool. | |
void | SetFloat (float f) |
Assign a float. | |
void | SetString (const char *s) |
Assign a string. | |
void | SetCommand () |
Assign a command. | |
long | GetLong () const |
Retrieve a long. | |
bool | GetBool () const |
Retrieve a bool. | |
float | GetFloat () const |
Retrieve a float. | |
const char * | GetString () const |
Retrieve a string. |
Detailed Description
Variant, means that type of contained data is set at runtime.Be aware that requesting another type than the containing one will trigger an assertion!
Definition at line 49 of file config.h.
Member Function Documentation
|
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. |
The documentation for this struct was generated from the following file:
- iutil/config.h
Generated for Crystal Space by doxygen 1.2.18