X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..89bb3f024443c8129a6acfb28a4d24ca9f190fcf:/interface/wx/variant.h diff --git a/interface/wx/variant.h b/interface/wx/variant.h index 6b0c5d5006..3da7997746 100644 --- a/interface/wx/variant.h +++ b/interface/wx/variant.h @@ -97,75 +97,75 @@ public: Default constructor. */ wxVariant(); - + /** Constructs a variant directly with a wxVariantData object. wxVariant will take ownership of the wxVariantData and will not increase its reference count. */ - wxVariant(wxVariantData* data, const wxString& name = ""); - + wxVariant(wxVariantData* data, const wxString& name = wxEmptyString); + /** Constructs a variant from another variant by increasing the reference count. */ wxVariant(const wxVariant& variant); - + /** Constructs a variant from a wide string literal. */ - wxVariant(const wxChar* value, const wxString& name = ""); - + wxVariant(const wxChar* value, const wxString& name = wxEmptyString); + /** Constructs a variant from a string. */ - wxVariant(const wxString& value, const wxString& name = ""); - + wxVariant(const wxString& value, const wxString& name = wxEmptyString); + /** Constructs a variant from a wide char. */ - wxVariant(wxChar value, const wxString& name = ""); - + wxVariant(wxChar value, const wxString& name = wxEmptyString); + /** Constructs a variant from a long. */ - wxVariant(long value, const wxString& name = ""); - + wxVariant(long value, const wxString& name = wxEmptyString); + /** Constructs a variant from a bool. */ - wxVariant(bool value, const wxString& name = ""); - + wxVariant(bool value, const wxString& name = wxEmptyString); + /** Constructs a variant from a double. */ - wxVariant(double value, const wxString& name = ""); - + wxVariant(double value, const wxString& name = wxEmptyString); + /** Constructs a variant from a list of variants */ - wxVariant(const wxVariantList& value, const wxString& name = ""); - + wxVariant(const wxVariantList& value, const wxString& name = wxEmptyString); + /** Constructs a variant from a void pointer. */ - wxVariant(void* value, const wxString& name = ""); - + wxVariant(void* value, const wxString& name = wxEmptyString); + /** Constructs a variant from a pointer to an wxObject derived class. */ - wxVariant(wxObject* value, const wxString& name = ""); - + wxVariant(wxObject* value, const wxString& name = wxEmptyString); + /** Constructs a variant from a wxDateTime. */ - wxVariant(wxDateTime& val, const wxString& name = ""); - + wxVariant(wxDateTime& val, const wxString& name = wxEmptyString); + /** Constructs a variant from a wxArrayString. */ - wxVariant(wxArrayString& val, const wxString& name = ""); + wxVariant(wxArrayString& val, const wxString& name = wxEmptyString); /** Destructor. @@ -175,7 +175,7 @@ public: called. See @ref overview_refcount_destruct "reference-counted object destruction" for more info. */ - ~wxVariant(); + virtual ~wxVariant(); /** @@ -500,7 +500,7 @@ public: this function in order for wxVariant::Unshare() to work for your data. This function is implemented for all built-in data types. */ - wxVariantData* Clone() const; + virtual wxVariantData* Clone() const; /** Decreases reference count. If the count reaches zero, the object is @@ -514,18 +514,18 @@ public: /** Returns @true if this object is equal to @a data. */ - bool Eq(wxVariantData& data) const; + virtual bool Eq(wxVariantData& data) const = 0; /** Returns the string type of the data. */ - wxString GetType() const; + virtual wxString GetType() const = 0; /** If the data is a wxObject returns a pointer to the objects wxClassInfo structure, if the data isn't a wxObject the method returns @NULL. */ - wxClassInfo* GetValueClassInfo() const; + virtual wxClassInfo* GetValueClassInfo(); /** Increases reference count. Note that initially wxVariantData has @@ -540,16 +540,16 @@ public: /** Reads the data from @a string. */ - bool Read(wxString& string); + virtual bool Read(wxString& string); /** Writes the data to @a stream. */ - bool Write(ostream& stream) const; + virtual bool Write(ostream& stream) const; /** Writes the data to @a string. */ - bool Write(wxString& string) const; + virtual bool Write(wxString& string) const; };