csVariant Struct Reference
[Utilities]
Variant, means that type of contained data is set at runtime.
More...
#include <iutil/pluginconfig.h>
Public Member Functions | |
csVariant (const csVariant &var) | |
Copy constructor - only IncRef's the String, should our type be a string. | |
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. | |
const csVariant & | operator= (const csVariant &var) |
Assignment operator. As with the copy-ctor, only IncRef's the string. | |
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. |
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 50 of file pluginconfig.h.
Constructor & Destructor Documentation
csVariant::csVariant | ( | const csVariant & | var | ) | [inline] |
Copy constructor - only IncRef's the String, should our type be a string.
Definition at line 70 of file pluginconfig.h.
Member Function Documentation
bool csVariant::GetBool | ( | ) | const [inline] |
float csVariant::GetFloat | ( | ) | const [inline] |
long csVariant::GetLong | ( | ) | const [inline] |
const char* csVariant::GetString | ( | ) | const [inline] |
Assignment operator. As with the copy-ctor, only IncRef's the string.
Definition at line 80 of file pluginconfig.h.
void csVariant::SetBool | ( | bool | b | ) | [inline] |
void csVariant::SetCommand | ( | ) | [inline] |
void csVariant::SetFloat | ( | float | f | ) | [inline] |
void csVariant::SetLong | ( | long | l | ) | [inline] |
void csVariant::SetString | ( | const char * | s | ) | [inline] |
The documentation for this struct was generated from the following file:
- iutil/pluginconfig.h
Generated for Crystal Space 1.4.0 by doxygen 1.5.8