Public Types | |
enum | VariantType { TypeNone, TypeBoolean, TypeInt32, TypeUInt32, TypeInt64, TypeUInt64, TypeFloat32, TypeFloat64, TypeString } |
Public Member Functions | |
TeVariant (bool val) | |
TeVariant (double val) | |
TeVariant (const Common::String &val) | |
TeVariant (const char *val) | |
TeVariant (const TeVariant &other) | |
VariantType | type () const |
bool | toBoolean (bool *success=nullptr) const |
float | toFloat32 (bool *success=nullptr) const |
double | toFloat64 (bool *success=nullptr) const |
int32 | toSigned32 (bool *success=nullptr) const |
int64 | toSigned64 (bool *success=nullptr) const |
Common::String | toString (bool *success=nullptr) const |
uint32 | toUnsigned32 (bool *success=nullptr) const |
uint64 | toUnsigned64 (bool *success=nullptr) const |
Common::String | dumpStr () const |
Dump a string representation for debugging. | |