virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
virtual bool Read(wxString& str);
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
virtual bool Read(wxString& str);
wxNode* node = m_value.First();
while (node)
{
wxVariant* var = (wxVariant*) node->Data();
if (node != m_value.First())
wxNode* node = m_value.First();
while (node)
{
wxVariant* var = (wxVariant*) node->Data();
if (node != m_value.First())
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
virtual bool Read(wxString& str);
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
virtual bool Read(wxString& str);
wxVariantDataStringList& listData = (wxVariantDataStringList&) data;
wxNode* node1 = m_value.First();
wxNode* node2 = listData.GetValue().First();
while (node1 && node2)
{
wxVariantDataStringList& listData = (wxVariantDataStringList&) data;
wxNode* node1 = m_value.First();
wxNode* node2 = listData.GetValue().First();
while (node1 && node2)
{
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
virtual bool Read(wxString& str);
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
virtual bool Read(wxString& str);
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
virtual bool Read(wxString& str);
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
virtual bool Read(wxString& str);
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
virtual bool Read(wxString& str);
virtual bool Write(wxString& str) const;
virtual bool Read(istream& str);
virtual bool Read(wxString& str);
// We can't return a reference to a variant for a string list, since the string
// is actually stored as a char*, not a variant.
// We can't return a reference to a variant for a string list, since the string
// is actually stored as a char*, not a variant.
return (wxList&) ((wxVariantDataList*) m_data)->GetValue();
}
wxStringList& wxVariant::GetStringList() const
{
return (wxList&) ((wxVariantDataList*) m_data)->GetValue();
}
wxStringList& wxVariant::GetStringList() const
{
- else if (type == "string")
- *value = atol((const char*) ((wxVariantDataString*)GetData())->GetValue());
+ else if (type == _T("string"))
+ *value = wxAtol((const wxChar*) ((wxVariantDataString*)GetData())->GetValue());
- else if (type == "string")
- *value = (double) atof((const char*) ((wxVariantDataString*)GetData())->GetValue());
+ else if (type == _T("string"))
+ *value = (double) wxAtof((const wxChar*) ((wxVariantDataString*)GetData())->GetValue());