return true;
}
-// wxVariant
+// wxVariant
wxVariant::wxVariant(long val, const wxString& name)
{
bool wxVariantDataChar::Read(wxSTD istream& WXUNUSED(str))
{
wxFAIL_MSG(wxT("Unimplemented"));
-
+
return false;
}
#endif
{
wxTextOutputStream s(str);
- s.Write8(m_value);
+ s << m_value;
+
return true;
}
bool wxVariant::operator== (wxChar value) const
{
- char thisValue;
+ wxChar thisValue;
if (!Convert(&thisValue))
return false;
else
wxChar wxVariant::GetChar() const
{
- char value;
+ wxChar value;
if (Convert(& value))
return value;
else
IMPLEMENT_DYNAMIC_CLASS(wxVariantDataString, wxVariantData)
// wxVariant ****
-
+
wxVariant::wxVariant(const wxString& val, const wxString& name)
{
m_data = new wxVariantDataString(val);
}
}
-// wxVariant
+// wxVariant
wxStringList& wxVariant::GetStringList() const
{
return true;
}
-bool wxVariant::Convert(char* value) const
+bool wxVariant::Convert(wxChar* value) const
{
wxString type(GetType());
if (type == wxT("char"))
}
#endif // wxUSE_DATETIME
-IMPLEMENT_VARIANT_OBJECT(wxColour)
-IMPLEMENT_VARIANT_OBJECT(wxPen)
-IMPLEMENT_VARIANT_OBJECT(wxBrush)
-IMPLEMENT_VARIANT_OBJECT(wxImage)
-IMPLEMENT_VARIANT_OBJECT(wxIcon)
-IMPLEMENT_VARIANT_OBJECT(wxBitmap)
-
#endif // wxUSE_VARIANT