-/*
- * wxVariant
- */
-
-IMPLEMENT_DYNAMIC_CLASS(wxVariant, wxObject)
-
-// Construction & destruction
-wxVariant::wxVariant()
-{
- m_data = (wxVariantData*) NULL;
-}
-
-wxVariant::wxVariant(double val, const wxString& name)
-{
- m_data = new wxVariantDataReal(val);
- m_name = name;
-}
-
-wxVariant::wxVariant(long val, const wxString& name)
-{
- m_data = new wxVariantDataLong(val);
- m_name = name;
-}
-
-#ifdef HAVE_BOOL
-wxVariant::wxVariant(bool val, const wxString& name)
-{
- m_data = new wxVariantDataBool(val);
- m_name = name;
-}
-#endif
-
-wxVariant::wxVariant(char val, const wxString& name)
-{
- m_data = new wxVariantDataChar(val);
- m_name = name;
-}
-
-wxVariant::wxVariant(const wxString& val, const wxString& name)
-{
- m_data = new wxVariantDataString(val);
- m_name = name;
-}
-
-wxVariant::wxVariant(const wxChar* val, const wxString& name)
-{
- m_data = new wxVariantDataString(wxString(val));
- m_name = name;
-}
-
-wxVariant::wxVariant(const wxStringList& val, const wxString& name)
-{
- m_data = new wxVariantDataStringList(val);
- m_name = name;
-}
-
-wxVariant::wxVariant(const wxList& val, const wxString& name) // List of variants
-{
- m_data = new wxVariantDataList(val);
- m_name = name;
-}
-
-#if wxUSE_TIMEDATE
-wxVariant::wxVariant(const wxTime& val, const wxString& name) // Time
-{
- m_data = new wxVariantDataTime(val);
- m_name = name;
-}
-
-wxVariant::wxVariant(const wxDate& val, const wxString& name) // Date
-{
- m_data = new wxVariantDataDate(val);
- m_name = name;
-}
-#endif
-
-wxVariant::wxVariant(void* val, const wxString& name) // Void ptr