13 #include <sys/types.h>
69 Variant(
const std::string& value);
128 void set(
char value);
134 void set(
bool value);
141 void set(int32_t value);
147 void set(u_int32_t value);
153 void set(
double value);
159 void set(
const std::string& value);
171 void set(
void* value);
177 void set(
const char* value);
247 std::string stringData;
Definition: Variant.hpp:114
double d
Definition: Variant.hpp:243
Variant()
Constructor. Creates invalid Variant.
Definition: Variant.cpp:15
Definition: Variant.hpp:121
bool operator==(Variant const &other)
Compare operator.
Definition: Variant.cpp:96
int32_t getInt() const
Definition: Variant.cpp:199
Definition: Variant.hpp:120
Definition: Variant.hpp:118
virtual ~Variant()
Destructor, virtual by default.
Definition: Variant.cpp:254
Definition: Variant.hpp:119
Definition: Variant.hpp:117
char c
Definition: Variant.hpp:240
Definition: Variant.hpp:115
SecureString class, used to store strings like passwords etc. Current implementation encodes string i...
Definition: SecureString.hpp:26
double getDouble() const
Definition: Variant.cpp:206
std::string getString() const
Definition: Variant.cpp:213
int32_t i
Definition: Variant.hpp:242
void * p
Definition: Variant.hpp:244
bool invalid() const
Definition: Variant.cpp:249
char getChar() const
Definition: Variant.cpp:185
bool b
Definition: Variant.hpp:241
DataType
Definition: Variant.hpp:112
OpenAB::SecureString getSecureString() const
Definition: Variant.cpp:221
Variant class that can contains different types of data.
Definition: Variant.hpp:26
DataType getType() const
Definition: Variant.cpp:244
bool getBool() const
Definition: Variant.cpp:192
void set(char value)
Definition: Variant.cpp:122
void * getPointer() const
Definition: Variant.cpp:229
Variant & operator=(Variant const &other)
Assignment operator.
Definition: Variant.cpp:85
Definition: Variant.hpp:116