Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
csVariant Struct Reference
[Utilities]
Variant, means that type of contained data is set at runtime.
More...
#include <iutil/config.h>
Public Member Functions | |
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.
|
|
Assign a command.
|
|
Assign a float.
|
|
Assign a long.
|
|
Assign a string.
Definition at line 86 of file config.h. References csStrNew(). |
The documentation for this struct was generated from the following file:
- iutil/config.h
Generated for Crystal Space by doxygen 1.3.9.1