|
Jameo Core Library
|
Public Member Functions | |
| Variant () | |
| Variant (const Variant &another) | |
| Variant & | operator= (const Variant &another) |
| Variant (int64 number) | |
| Variant (double number) | |
| Variant (const jm::String &string) | |
| int64 | toInt64 () const |
| int32 | toInt32 () const |
| double | toDouble () const |
| const String & | toString () const |
Public Attributes | ||
| PropertyType | mType | |
| Type of Property. | ||
| union { | ||
| bool boolValue | ||
| uint64 uintValue | ||
| int64 intValue | ||
| float floatValue | ||
| double doubleValue | ||
| } | mNumberValue | |
| The value of the property is usually set by the user in the GUI. Therefore, the value is typically a string, boolean, or number. If there is another type of value, it is wise to consider whether the transfer should be done as a text or if it should be extended here. However, it is always better to parse it as a text. As mentioned, it comes from the interface and not from other data. | ||
| String | mTextValue | |
| jm::Variant::Variant | ( | ) |
| jm::Variant::Variant | ( | const Variant & | another | ) |
|
explicit |
|
explicit |
|
explicit |
| double jm::Variant::toDouble | ( | ) | const |
| int32 jm::Variant::toInt32 | ( | ) | const |
| int64 jm::Variant::toInt64 | ( | ) | const |
| const String & jm::Variant::toString | ( | ) | const |
| bool jm::Variant::boolValue |
| double jm::Variant::doubleValue |
| float jm::Variant::floatValue |
| int64 jm::Variant::intValue |
| union { ... } jm::Variant::mNumberValue |
The value of the property is usually set by the user in the GUI. Therefore, the value is typically a string, boolean, or number. If there is another type of value, it is wise to consider whether the transfer should be done as a text or if it should be extended here. However, it is always better to parse it as a text. As mentioned, it comes from the interface and not from other data.
| String jm::Variant::mTextValue |
| PropertyType jm::Variant::mType |
Type of Property.
| uint64 jm::Variant::uintValue |