Variant class that can contains different types of data.
More...
#include <Variant.hpp>
Variant class that can contains different types of data.
Enumerator |
---|
INVALID |
invalid type, used to indicate that Variant is not initialized
|
CHAR |
char type
|
BOOL |
bool type
|
INTEGER |
4-bytes signed integer type
|
DOUBLE |
double type
|
STRING |
string type
|
SECURE_STRING |
secure string eg. holding password
|
POINTER |
pointer type
|
OpenAB::Variant::Variant |
( |
| ) |
|
Constructor. Creates invalid Variant.
OpenAB::Variant::Variant |
( |
char |
value | ) |
|
Constructor.
- Parameters
-
[in] | value | char value to be stored in Variant |
OpenAB::Variant::Variant |
( |
bool |
value | ) |
|
Constructor.
- Parameters
-
[in] | value | bool value to be stored in Variant |
OpenAB::Variant::Variant |
( |
u_int32_t |
value | ) |
|
Constructor.
- Parameters
-
[in] | value | 4-bytes unsigned integer value to be stored in Variant |
OpenAB::Variant::Variant |
( |
int32_t |
value | ) |
|
Constructor.
- Parameters
-
[in] | value | 4-byte signed integer value to be stored in Variant |
OpenAB::Variant::Variant |
( |
double |
value | ) |
|
Constructor.
- Parameters
-
[in] | value | double value to be stored in Variant |
OpenAB::Variant::Variant |
( |
const std::string & |
value | ) |
|
Constructor.
- Parameters
-
[in] | value | std::string value to be stored in Variant |
OpenAB::Variant::Variant |
( |
void * |
value | ) |
|
Constructor.
- Parameters
-
[in] | value | pointer value to be stored in Variant |
OpenAB::Variant::Variant |
( |
const char * |
value | ) |
|
Constructor.
- Parameters
-
[in] | value | const pointer value to be stored in Variant |
OpenAB::Variant::Variant |
( |
Variant const & |
other | ) |
|
OpenAB::Variant::~Variant |
( |
| ) |
|
|
virtual |
Destructor, virtual by default.
bool OpenAB::Variant::getBool |
( |
| ) |
const |
char OpenAB::Variant::getChar |
( |
| ) |
const |
double OpenAB::Variant::getDouble |
( |
| ) |
const |
int32_t OpenAB::Variant::getInt |
( |
| ) |
const |
void * OpenAB::Variant::getPointer |
( |
| ) |
const |
std::string OpenAB::Variant::getString |
( |
| ) |
const |
Returns data type stored by Variant
- Returns
- data type stored by Variant
bool OpenAB::Variant::invalid |
( |
| ) |
const |
Checks if Variant was not initialized
- Returns
- true if Variant is not initialized, false otherwise
bool OpenAB::Variant::operator== |
( |
Variant const & |
other | ) |
|
void OpenAB::Variant::set |
( |
char |
value | ) |
|
Sets char value to be stored in Variant.
- Parameters
-
[in] | value | char value to be stored in Variant. |
void OpenAB::Variant::set |
( |
bool |
value | ) |
|
Sets bool value to be stored in Variant.
- Parameters
-
[in] | value | bool value to be stored in Variant. |
void OpenAB::Variant::set |
( |
int32_t |
value | ) |
|
Sets 4-bytes signed integer value to be stored in Variant.
- Parameters
-
[in] | value | 4-bytes signed integer value to be stored in Variant. |
void OpenAB::Variant::set |
( |
u_int32_t |
value | ) |
|
Sets 4-bytes unsigned integer value to be stored in Variant.
- Parameters
-
[in] | value | 4-bytes unsigned integer value to be stored in Variant. |
void OpenAB::Variant::set |
( |
double |
value | ) |
|
Sets double value to be stored in Variant.
- Parameters
-
[in] | value | double value to be stored in Variant. |
void OpenAB::Variant::set |
( |
const std::string & |
value | ) |
|
Sets string value to be stored in Variant.
- Parameters
-
[in] | value | string value to be stored in Variant. |
void OpenAB::Variant::set |
( |
void * |
value | ) |
|
Sets pointer value to be stored in Variant.
- Parameters
-
[in] | value | pointer value to be stored in Variant. |
void OpenAB::Variant::set |
( |
const char * |
value | ) |
|
Sets pointer value to be stored in Variant.
- Parameters
-
[in] | value | pointer value to be stored in Variant. |
double OpenAB::Variant::d |
int32_t OpenAB::Variant::i |
The documentation for this class was generated from the following files: