csVariant Struct Reference
[Utilities]
Variant, means that type of contained data is set at runtime.
More...
#include <iutil/pluginconfig.h>
Public Member Functions | |
csVariant () | |
bool | GetBool () const |
Retrieve a bool. | |
float | GetFloat () const |
Retrieve a float. | |
long | GetLong () const |
Retrieve a long. | |
const char * | GetString () const |
Retrieve a string. | |
csVariantType | GetType () const |
void | SetBool (bool b) |
Assign a bool. | |
void | SetCommand () |
Assign a command. | |
void | SetFloat (float f) |
Assign a float. | |
void | SetLong (long l) |
Assign a long. | |
void | SetString (const char *s) |
Assign a string. | |
~csVariant () |
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 pluginconfig.h.
Member Function Documentation
|
Retrieve a bool.
Definition at line 112 of file pluginconfig.h. References CS_ASSERT, and CSVAR_BOOL. |
|
Retrieve a float.
Definition at line 118 of file pluginconfig.h. References CS_ASSERT, and CSVAR_FLOAT. |
|
Retrieve a long.
Definition at line 106 of file pluginconfig.h. References CS_ASSERT, and CSVAR_LONG. |
|
Retrieve a string.
Definition at line 124 of file pluginconfig.h. References CS_ASSERT, and CSVAR_STRING. |
|
Assign a bool.
Definition at line 72 of file pluginconfig.h. References CSVAR_BOOL, and CSVAR_STRING. |
|
Assign a command.
Definition at line 99 of file pluginconfig.h. References CSVAR_CMD, and CSVAR_STRING. |
|
Assign a float.
Definition at line 79 of file pluginconfig.h. References CSVAR_FLOAT, and CSVAR_STRING. |
|
Assign a long.
Definition at line 65 of file pluginconfig.h. References CSVAR_LONG, and CSVAR_STRING. |
|
Assign a string.
Definition at line 86 of file pluginconfig.h. References csStrNew(), and CSVAR_STRING. |
The documentation for this struct was generated from the following file:
- iutil/pluginconfig.h
Generated for Crystal Space by doxygen 1.4.6