X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b21126db7a8232fa9e64b29f916d73d6b0153bef..2028c33ab5a39a12bd410ac953731a56ad6377ba:/interface/wx/variant.h?ds=inline diff --git a/interface/wx/variant.h b/interface/wx/variant.h index 45882e6f29..42575ddc77 100644 --- a/interface/wx/variant.h +++ b/interface/wx/variant.h @@ -141,6 +141,16 @@ public: */ wxVariant(double value, const wxString& name = wxEmptyString); + /** + Constructs a variant from a wxLongLong. + */ + wxVariant(wxLongLong value, const wxString& name = wxEmptyString); + + /** + Constructs a variant from a wxULongLong. + */ + wxVariant(wxULongLong value, const wxString& name = wxEmptyString); + /** Constructs a variant from a list of variants */ @@ -250,6 +260,8 @@ public: bool Convert(double* value) const; bool Convert(wxString* value) const; bool Convert(wxChar* value) const; + bool Convert(wxLongLong* value) const; + bool Convert(wxULongLong* value) const; bool Convert(wxDateTime* value) const; //@} @@ -290,6 +302,11 @@ public: */ long GetLong() const; + /** + Returns the signed 64-bit integer value. + */ + wxLongLong GetLongLong() const; + /** Returns a constant reference to the variant name. */ @@ -310,7 +327,9 @@ public: - "double" - "list" - "long" + - "longlong" - "string" + - "ulonglong" - "arrstring" - "void*" @@ -319,8 +338,16 @@ public: */ wxString GetType() const; + /** + Returns the unsigned 64-bit integer value. + */ + wxULongLong GetULongLong() const; + /** Gets the void pointer value. + + Notice that this method can be used for null objects (i.e. those for + which IsNull() returns @true) and will return @NULL for them. */ void* GetVoidPtr() const; @@ -387,6 +414,8 @@ public: bool operator !=(long value) const; bool operator !=(bool value) const; bool operator !=(double value) const; + bool operator !=(wxLongLong value) const; + bool operator !=(wxULongLong value) const; bool operator !=(void* value) const; bool operator !=(wxObject* value) const; bool operator !=(const wxVariantList& value) const; @@ -407,6 +436,8 @@ public: void operator =(long value); void operator =(bool value); void operator =(double value); + bool operator =(wxLongLong value) const; + bool operator =(wxULongLong value) const; void operator =(void* value); void operator =(wxObject* value); void operator =(const wxVariantList& value); @@ -425,6 +456,8 @@ public: bool operator ==(long value) const; bool operator ==(bool value) const; bool operator ==(double value) const; + bool operator ==(wxLongLong value) const; + bool operator ==(wxULongLong value) const; bool operator ==(void* value) const; bool operator ==(wxObject* value) const; bool operator ==(const wxVariantList& value) const; @@ -434,10 +467,13 @@ public: //@{ /** - Operator for implicit conversion to a long, using GetLong(). + Operators for implicit conversion, using appropriate getter member + function. */ double operator double() const; long operator long() const; + wxLongLong operator wxLongLong() const; + wxULongLong operator wxULongLong() const; //@} /** @@ -487,7 +523,7 @@ public: @see wxVariant, wxGetVariantCast() */ -class wxVariantData +class wxVariantData : public wxObjectRefData { public: /**