virtual bool Read(istream& str);
virtual bool Write(ostream& str) const;
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
virtual bool Read(wxInputStream& str);
virtual bool Write(wxOutputStream &str) const;
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
virtual wxString GetType() const { return "long"; };
return TRUE;
}
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
bool wxVariantDataLong::Write(wxOutputStream& str) const
{
str << m_value;
str >> m_value;
return TRUE;
}
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
bool wxVariantDataLong::Read(wxString& str)
{
virtual bool Write(ostream& str) const;
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
virtual bool Read(wxInputStream& str);
virtual bool Write(wxOutputStream &str) const;
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
virtual wxString GetType() const { return "double"; };
protected:
return TRUE;
}
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
bool wxVariantDataReal::Write(wxOutputStream& str) const
{
str << m_value;
str >> (float&)m_value;
return TRUE;
}
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
bool wxVariantDataReal::Read(wxString& str)
{
virtual bool Write(wxString& str) const;
virtual bool Read(wxString& str);
virtual bool Read(istream& str);
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
virtual bool Read(wxInputStream& str);
virtual bool Write(wxOutputStream& str) const;
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
virtual wxString GetType() const { return "bool"; };
protected:
return FALSE;
}
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
bool wxVariantDataBool::Write(wxOutputStream& str) const
{
str << (char)m_value;
str >> (char&)m_value;
return TRUE;
}
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
bool wxVariantDataBool::Read(wxString& str)
{
virtual bool Write(ostream& str) const;
virtual bool Read(wxString& str);
virtual bool Write(wxString& str) const;
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
virtual bool Read(wxInputStream& str);
virtual bool Write(wxOutputStream& str) const;
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
virtual wxString GetType() const { return "char"; };
protected:
return FALSE;
}
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
bool wxVariantDataChar::Write(wxOutputStream& str) const
{
str << m_value;
str >> m_value;
return TRUE;
}
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
bool wxVariantDataChar::Read(wxString& str)
{
virtual bool Read(wxString& str);
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
virtual bool Read(wxInputStream& str);
virtual bool Write(wxOutputStream& str) const;
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
virtual wxString GetType() const { return "string"; };
protected:
return TRUE;
}
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
bool wxVariantDataString::Write(wxOutputStream& str) const
{
str << (const char*) m_value;
str >> m_value;
return TRUE;
}
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
bool wxVariantDataString::Read(wxString& str)
{