#include </cygdrive/c/Users/Hamis/Cygwin-packaging/wxWidgets3.1/wxWidgets3.1-3.1.5-2.x86_64/src/wxWidgets-3.1.5/interface/wx/msw/ole/oleutils.h>
Inheritance diagram for wxVariantDataCurrency:This class represents a thin wrapper for Microsoft Windows CURRENCY type.
It is used for converting between wxVariant and OLE VARIANT with type set to VT_CURRENCY. When wxVariant stores wxVariantDataCurrency, it returns "currency" as its type.
An example of setting and getting CURRENCY value to and from wxVariant:
<>< =''>:</>&;&;< =''>\ </></>
Public Member Functions | |
| wxVariantDataCurrency () | |
| Default constructor initializes the object to 0.0. | |
| wxVariantDataCurrency (CURRENCY value) | |
| Constructor from CURRENCY. | |
| CURRENCY | GetValue () const |
| Returns the stored CURRENCY value. | |
| void | SetValue (CURRENCY value) |
| Sets the stored value to value. | |
| virtual bool | Eq (wxVariantData &data) const |
| Returns true if data is of wxVariantDataCurency type and contains the same CURRENCY value. | |
| virtual bool | Write (wxString &str) const |
| Fills the provided string with the textual representation of this object. | |
| wxVariantData * | Clone () const |
| Returns a copy of itself. | |
| virtual wxString | GetType () const |
| Returns "currency". | |
| virtual bool | GetAsAny (wxAny *any) const |
| Converts the value of this object to wxAny. | |
Public Member Functions inherited from wxVariantData | |
| wxVariantData () | |
| Default constructor. | |
| void | DecRef () |
| Decreases reference count. | |
| virtual bool | GetAny (wxAny *any) const |
| Converts value to wxAny, if possible. | |
| virtual wxClassInfo * | GetValueClassInfo () |
| 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. | |
| void | IncRef () |
| Increases reference count. | |
| virtual bool | Read (istream &stream) |
| Reads the data from stream. | |
| virtual bool | Read (wxString &string) |
| Reads the data from string. | |
| virtual bool | Write (ostream &stream) const |
| Writes the data to stream. | |
| wxVariantDataCurrency::wxVariantDataCurrency | ( | ) |
Default constructor initializes the object to 0.0.
| wxVariantDataCurrency::wxVariantDataCurrency | ( | CURRENCY | value | ) |
Constructor from CURRENCY.
|
virtual |
Returns a copy of itself.
Reimplemented from wxVariantData.
|
virtual |
Returns true if data is of wxVariantDataCurency type and contains the same CURRENCY value.
Implements wxVariantData.
|
virtual |
Converts the value of this object to wxAny.
|
virtual |
Returns "currency".
Implements wxVariantData.
| CURRENCY wxVariantDataCurrency::GetValue | ( | ) | const |
Returns the stored CURRENCY value.
| void wxVariantDataCurrency::SetValue | ( | CURRENCY | value | ) |
Sets the stored value to value.
|
virtual |
Fills the provided string with the textual representation of this object.
The implementation of this method uses VarBstrFromCy() Windows API function with LOCALE_USER_DEFAULT.
Reimplemented from wxVariantData.