![]() |
Main Page
Class Hierarchy
Alphabetical List
Compound List
File List
Compound Members
![]() |
#include <FXVariant.h>
Inheritance diagram for FXEX::FXVariant::
Public Methods | |
FXVariant (FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXVariant &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const bool &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXuchar &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXchar &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXushort &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXshort &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXuint &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXint &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXulong &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXlong &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXfloat &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXdouble &v, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXCharset &c, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXString &s, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const FXWString &s, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (FXObject *o, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (void *p, FXObject *tgt=NULL, FXSelector sel=0) | |
FXVariant (const void *p, unsigned long size, FXObject *tgt=NULL, FXSelector sel=0) | |
unsigned long | getSize () const |
virtual void | clear () |
void | setType (FXint type) |
FXint | getType () const |
FXbool | isUnassigned () const |
FXbool | isNull () const |
FXbool | isBool () const |
FXbool | isFXuchar () const |
FXbool | isFXchar () const |
FXbool | isFXushort () const |
FXbool | isFXshort () const |
FXbool | isFXuint () const |
FXbool | isFXint () const |
FXbool | isFXfloat () const |
FXbool | isFXdouble () const |
FXbool | isFXCharset () const |
FXbool | isFXString () const |
FXbool | isFXWString () const |
FXbool | isFXObject () const |
FXbool | isPointer () const |
FXbool | isRaw () const |
FXVariant & | operator= (const FXVariant &v) |
FXVariant & | operator= (const bool &v) |
FXVariant & | operator= (const FXuchar &v) |
FXVariant & | operator= (const FXchar &v) |
FXVariant & | operator= (const FXushort &v) |
FXVariant & | operator= (const FXshort &v) |
FXVariant & | operator= (const FXuint &v) |
FXVariant & | operator= (const FXint &v) |
FXVariant & | operator= (const FXulong &v) |
FXVariant & | operator= (const FXlong &v) |
FXVariant & | operator= (const FXfloat &v) |
FXVariant & | operator= (const FXdouble &v) |
FXVariant & | operator= (const FXCharset &c) |
FXVariant & | operator= (const FXString &s) |
FXVariant & | operator= (const FXWString &s) |
FXVariant & | operator= (FXObject *o) |
FXVariant & | operator= (void *p) |
void | setData (const void *p, unsigned long size) |
virtual bool | asBool () const |
virtual FXuchar | asFXuchar () const |
virtual FXchar | asFXchar () const |
virtual FXushort | asFXushort () const |
virtual FXshort | asFXshort () const |
virtual FXuint | asFXuint () const |
virtual FXint | asFXint () const |
virtual FXulong | asFXulong () const |
virtual FXlong | asFXlong () const |
virtual FXfloat | asFXfloat () const |
virtual FXdouble | asFXdouble () const |
virtual FXCharset | asFXCharset () const |
virtual FXString | asFXString () const |
virtual FXWString | asFXWString () const |
virtual FXObject * | asFXObject () const |
virtual void * | asPointer () const |
virtual void * | asRaw () const |
virtual FXuval | asAddress () const |
operator bool () const | |
operator FXuchar () const | |
operator FXchar () const | |
operator FXushort () const | |
operator FXshort () const | |
operator FXuint () const | |
operator FXint () const | |
operator FXulong () const | |
operator FXlong () const | |
operator FXfloat () const | |
operator FXdouble () const | |
operator FXCharset () const | |
operator FXString () const | |
operator FXWString () const | |
operator FXObject * () const | |
operator void * () const | |
FXVariant & | toBool () |
FXVariant & | toFXuchar () |
FXVariant & | toFXchar () |
FXVariant & | toFXushort () |
FXVariant & | toFXshort () |
FXVariant & | toFXuint () |
FXVariant & | toFXint () |
FXVariant & | toFXulong () |
FXVariant & | toFXlong () |
FXVariant & | toFXfloat () |
FXVariant & | toFXdouble () |
FXVariant & | toFXCharset () |
FXVariant & | toFXString () |
FXVariant & | toFXWString () |
FXVariant & | toFXObject () |
FXVariant & | toPointer () |
FXVariant & | toRaw () |
FXVariant & | convertTo (FXint type) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXVariant () |
Friends | |
FXbool | operator== (const FXVariant &v1, const FXVariant &v2) |
FXbool | operator!= (const FXVariant &v1, const FXVariant &v2) |
its aim is to ...) be assignable to any data type. They accept ID_GET/SET events so at to make connecting to widgets/datatargets easier. FIXME: add support for FXWString
Note: we only provide a single pair of operator==/operator!= for the FXVariant type since you can always use the getType() and 'asXXXXX()' methods to get the type you want.
Definition at line 40 of file FXVariant.h.
|
constructors for all the known types takes a deep copy of data type (where possible).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
destructor (& cleanup).
|
|
Return the number of bytes needed to store hold the data for the current type this will often be the natural size of the data type.
|
|
clears/resets the contents of the variant.
|
|
set the date type, to a specific type.
|
|
return data type.
Definition at line 107 of file FXVariant.h. |
|
test data type.
Definition at line 110 of file FXVariant.h. |
|
Definition at line 111 of file FXVariant.h. |
|
Definition at line 112 of file FXVariant.h. |
|
Definition at line 113 of file FXVariant.h. |
|
Definition at line 114 of file FXVariant.h. |
|
Definition at line 115 of file FXVariant.h. |
|
Definition at line 116 of file FXVariant.h. |
|
Definition at line 117 of file FXVariant.h. |
|
Definition at line 118 of file FXVariant.h. |
|
Definition at line 119 of file FXVariant.h. |
|
Definition at line 120 of file FXVariant.h. |
|
Definition at line 121 of file FXVariant.h. |
|
Definition at line 122 of file FXVariant.h. |
|
Definition at line 123 of file FXVariant.h. |
|
Definition at line 124 of file FXVariant.h. |
|
Definition at line 125 of file FXVariant.h. |
|
Definition at line 126 of file FXVariant.h. |
|
assignment operators.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
copy raw data, of specified length.
|
|
Try and convert the data to something useful; returns the result Note: you may or may not get something useful out of this.
Referenced by toPointer().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return operator() (eg: as used in 'if' conditions) FIXME: Should we throw an error if the required type is not the internal type, rather than trying to convert it to that type?
Definition at line 178 of file FXVariant.h. |
|
Definition at line 179 of file FXVariant.h. |
|
Definition at line 180 of file FXVariant.h. |
|
Definition at line 181 of file FXVariant.h. |
|
Definition at line 182 of file FXVariant.h. |
|
Definition at line 183 of file FXVariant.h. |
|
Definition at line 184 of file FXVariant.h. |
|
Definition at line 185 of file FXVariant.h. |
|
Definition at line 186 of file FXVariant.h. |
|
Definition at line 187 of file FXVariant.h. |
|
Definition at line 188 of file FXVariant.h. |
|
Definition at line 189 of file FXVariant.h. |
|
Definition at line 190 of file FXVariant.h. |
|
Definition at line 191 of file FXVariant.h. |
|
Definition at line 192 of file FXVariant.h. |
|
Definition at line 193 of file FXVariant.h. |
|
convert internal representation to different type, if possible note: this may result in loss of data.
Definition at line 199 of file FXVariant.h. |
|
Definition at line 200 of file FXVariant.h. |
|
Definition at line 201 of file FXVariant.h. |
|
Definition at line 202 of file FXVariant.h. |
|
Definition at line 203 of file FXVariant.h. |
|
Definition at line 204 of file FXVariant.h. |
|
Definition at line 205 of file FXVariant.h. |
|
Definition at line 206 of file FXVariant.h. |
|
Definition at line 207 of file FXVariant.h. |
|
Definition at line 208 of file FXVariant.h. |
|
Definition at line 209 of file FXVariant.h. |
|
Definition at line 210 of file FXVariant.h. |
|
Definition at line 211 of file FXVariant.h. |
|
Definition at line 212 of file FXVariant.h. |
|
Definition at line 213 of file FXVariant.h. |
|
Definition at line 214 of file FXVariant.h. |
|
|
|
convert to a specific type.
|
|
save to stream.
Reimplemented from FXEX::FXBaseObject. |
|
load from stream.
Reimplemented from FXEX::FXBaseObject. |
|
equality...
|
|
in-equality...
|