- string, string list, time, date, void pointer, list of strings, and list of variants.
- However, an application can extend wxVariant's capabilities by deriving from the
- class wxVariantData and using the wxVariantData form of the wxVariant constructor
- or assignment operator to assign this data to a variant.
- Actual values for user-defined types will need to be accessed via the wxVariantData
- object, unlike the case for basic data types where convenience functions such as
- wxVariant::GetLong can be used.
-
- Pointers to any wxObject derived class can also easily be stored in a wxVariant.
- wxVariant will then use wxWidgets' built-in RTTI system to set the type name
- (returned by wxVariant::GetType) and to perform type-safety checks at runtime.
-
- This class is useful for reducing the programming for certain tasks, such as
- an editor for different data types, or a remote procedure call protocol.
+ string, string list, time, date, void pointer, list of strings, and list of
+ variants. However, an application can extend wxVariant's capabilities by
+ deriving from the class wxVariantData and using the wxVariantData form of
+ the wxVariant constructor or assignment operator to assign this data to a
+ variant. Actual values for user-defined types will need to be accessed via
+ the wxVariantData object, unlike the case for basic data types where
+ convenience functions such as GetLong() can be used.
+
+ Pointers to any wxObject derived class can also easily be stored in a
+ wxVariant. wxVariant will then use wxWidgets' built-in RTTI system to set
+ the type name (returned by GetType()) and to perform type-safety checks at
+ runtime.
+
+ This class is useful for reducing the programming for certain tasks, such
+ as an editor for different data types, or a remote procedure call protocol.