#ifndef WX_PRECOMP
#include "wx/string.h"
+ #include "wx/math.h"
+ #if wxUSE_STREAMS
+ #include "wx/stream.h"
+ #endif
#endif
#if wxUSE_STD_IOSTREAM
#endif
#if wxUSE_STREAMS
-#include "wx/stream.h"
-#include "wx/txtstrm.h"
+ #include "wx/txtstrm.h"
#endif
#include "wx/string.h"
#include "wx/tokenzr.h"
-#include "wx/math.h"
IMPLEMENT_ABSTRACT_CLASS(wxVariantData, wxObject)
public:
wxVariantDataList() {}
wxVariantDataList(const wxList& list);
- ~wxVariantDataList();
+ virtual ~wxVariantDataList();
wxList& GetValue() { return m_value; }
void SetValue(const wxList& value) ;
virtual bool Read(wxString& str);
virtual bool Write(wxString& str) const;
#if wxUSE_STD_IOSTREAM
- virtual bool Read(wxSTD istream& str);
+ virtual bool Read(wxSTD istream& WXUNUSED(str)) { return false; };
#endif
#if wxUSE_STREAMS
virtual bool Read(wxInputStream& str);
return true;
}
-#if wxUSE_STD_IOSTREAM
-bool wxVariantDataString::Read(wxSTD istream& str)
-{
- str >> m_value;
- return true;
-}
-#endif
-
#if wxUSE_STREAMS
bool wxVariantDataString::Write(wxOutputStream& str) const
{
bool wxVariantDataWxObjectPtr::Write(wxString& str) const
{
- str.Printf(wxT("%s(%p)"), GetType().c_str(), m_value);
+ str.Printf(wxT("%s(%p)"), GetType().c_str(), wx_static_cast(void*, m_value));
return true;
}
// Fallback to string conversion
wxString val;
return Convert(&val) &&
- (value->ParseDateTime(val) || value->ParseDate(val));
+ (value->ParseDateTime(val) || value->ParseDate(val) || value->ParseTime(val));
}
#endif // wxUSE_DATETIME