CrystalSpace

Public API Reference

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>

List of all members.

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

bool csVariant::GetBool  )  const [inline]
 

Retrieve a bool.

Definition at line 109 of file config.h.

References CSVAR_BOOL.

float csVariant::GetFloat  )  const [inline]
 

Retrieve a float.

Definition at line 115 of file config.h.

References CSVAR_FLOAT.

long csVariant::GetLong  )  const [inline]
 

Retrieve a long.

Definition at line 103 of file config.h.

References CSVAR_LONG.

const char* csVariant::GetString  )  const [inline]
 

Retrieve a string.

Definition at line 121 of file config.h.

References CSVAR_STRING.

void csVariant::SetBool bool  b  )  [inline]
 

Assign a bool.

Definition at line 72 of file config.h.

void csVariant::SetCommand  )  [inline]
 

Assign a command.

Definition at line 96 of file config.h.

void csVariant::SetFloat float  f  )  [inline]
 

Assign a float.

Definition at line 79 of file config.h.

void csVariant::SetLong long  l  )  [inline]
 

Assign a long.

Definition at line 65 of file config.h.

void csVariant::SetString const char *  s  )  [inline]
 

Assign a string.

Definition at line 86 of file config.h.

References csStrNew().


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1