#include <variant.h>
Variant value to wrap a TQVariant into a Kross::Api::Value to enable primitive types like strings or numerics.
Definition at line 38 of file variant.h.
◆ Variant()
| Variant::Variant |
( |
const TQVariant & | value | ) |
|
Constructor.
- Parameters
-
| value | The initial TQVariant-value this Variant-Object has. |
| name | The name this Value has. |
Definition at line 27 of file variant.cpp.
◆ ~Variant()
◆ getClassName()
| const TQString Variant::getClassName |
( |
| ) |
const |
|
virtual |
◆ operator bool()
| Kross::Api::Variant::operator bool |
( |
| ) |
|
|
inline |
◆ operator const char *()
| Kross::Api::Variant::operator const char * |
( |
| ) |
|
|
inline |
◆ operator const TQCString()
| Kross::Api::Variant::operator const TQCString |
( |
| ) |
|
|
inline |
◆ operator const TQCString &()
| Kross::Api::Variant::operator const TQCString & |
( |
| ) |
|
|
inline |
◆ operator const TQString()
| Kross::Api::Variant::operator const TQString |
( |
| ) |
|
|
inline |
◆ operator const TQString &()
| Kross::Api::Variant::operator const TQString & |
( |
| ) |
|
|
inline |
◆ operator const TQVariant()
| Kross::Api::Variant::operator const TQVariant |
( |
| ) |
|
|
inline |
◆ operator const TQVariant &()
| Kross::Api::Variant::operator const TQVariant & |
( |
| ) |
|
|
inline |
◆ operator double()
| Kross::Api::Variant::operator double |
( |
| ) |
|
|
inline |
◆ operator int()
| Kross::Api::Variant::operator int |
( |
| ) |
|
|
inline |
◆ operator TQCString()
| Kross::Api::Variant::operator TQCString |
( |
| ) |
|
|
inline |
◆ operator TQString()
| Kross::Api::Variant::operator TQString |
( |
| ) |
|
|
inline |
◆ operator TQStringList()
| Kross::Api::Variant::operator TQStringList |
( |
| ) |
|
|
inline |
◆ operator TQValueList< TQVariant >()
| Kross::Api::Variant::operator TQValueList< TQVariant > |
( |
| ) |
|
|
inline |
◆ operator TQVariant()
| Kross::Api::Variant::operator TQVariant |
( |
| ) |
|
|
inline |
◆ operator uint()
| Kross::Api::Variant::operator uint |
( |
| ) |
|
|
inline |
◆ toBool()
Try to convert the given Object into a boolean value.
- Exceptions
-
| TypeException | If the convert failed. |
- Parameters
-
| object | The object to convert. |
- Returns
- The to a bool converted object.
Definition at line 128 of file variant.cpp.
◆ toDouble()
Try to convert the given Object into a uint.
- Exceptions
-
| TypeException | If the convert failed. |
- Parameters
-
| object | The object to convert. |
- Returns
- The to a uint converted object.
Definition at line 104 of file variant.cpp.
◆ toInt()
Try to convert the given Object into a int.
- Exceptions
-
| TypeException | If the convert failed. |
- Parameters
-
| object | The object to convert. |
- Returns
- The to a int converted object.
Definition at line 88 of file variant.cpp.
◆ toList()
| TQValueList< TQVariant > Variant::toList |
( |
Object::Ptr | object | ) |
|
|
static |
Try to convert the given Object into a TQValueList of TQVariant's.
- Exceptions
-
| TypeException | If the convert failed. |
- Parameters
-
| object | The object to convert. |
- Returns
- The to a TQValueList converted object.
Definition at line 153 of file variant.cpp.
◆ toLLONG()
Try to convert the given Object into a TQ_LLONG.
- Exceptions
-
| TypeException | If the convert failed. |
- Parameters
-
| object | The object to convert. |
- Returns
- The to a TQ_LLONG converted object.
Definition at line 112 of file variant.cpp.
◆ toString() [1/2]
| const TQString Variant::toString |
( |
| ) |
|
|
virtual |
◆ toString() [2/2]
Try to convert the given Object into a TQString.
- Exceptions
-
| TypeException | If the convert failed. |
- Parameters
-
| object | The object to convert. |
- Returns
- The to a TQString converted object.
Definition at line 80 of file variant.cpp.
◆ toStringList()
| TQStringList Variant::toStringList |
( |
Object::Ptr | object | ) |
|
|
static |
Try to convert the given Object into a TQStringList.
- Exceptions
-
| TypeException | If the convert failed. |
- Parameters
-
| object | The object to convert. |
- Returns
- The to a TQValueList converted object.
Definition at line 136 of file variant.cpp.
◆ toUInt()
Try to convert the given Object into a uint.
- Exceptions
-
| TypeException | If the convert failed. |
- Parameters
-
| object | The object to convert. |
- Returns
- The to a uint converted object.
Definition at line 96 of file variant.cpp.
◆ toULLONG()
Try to convert the given Object into a TQ_ULLONG.
- Exceptions
-
| TypeException | If the convert failed. |
- Parameters
-
| object | The object to convert. |
- Returns
- The to a TQ_ULLONG converted object.
Definition at line 120 of file variant.cpp.
◆ toVariant()
| const TQVariant & Variant::toVariant |
( |
Object::Ptr | object | ) |
|
|
static |
Try to convert the given Object into a TQVariant.
- Exceptions
-
| TypeException | If the convert failed. |
- Parameters
-
| object | The object to convert. |
- Returns
- The to a TQVariant converted object.
Definition at line 75 of file variant.cpp.
◆ Value< Variant, TQVariant >
The documentation for this class was generated from the following files: