- s = data ;
-}
-
-/*
- Custom Data Streaming / Type Infos
- we will have to add this for all wx non object types, but it is also an example
- for custom data structures
-*/
-
-// wxPoint
-
-template<> void wxStringReadValue(const wxString &s , wxPoint &data )
-{
- wxSscanf(s, _T("%d,%d"), &data.x , &data.y ) ;
-}
-
-template<> void wxStringWriteValue(wxString &s , const wxPoint &data )
-{
- s = wxString::Format("%d,%d", data.x , data.y ) ;
-}
-
-template<> void wxStringReadValue(const wxString & , wxPoint* & )
-{
- assert(0) ;
-}
-
-template<> void wxStringWriteValue(wxString & , wxPoint* const & )
-{
- assert(0) ;
-}
-
-WX_CUSTOM_TYPE_INFO(wxPoint)
-
-template<> void wxStringReadValue(const wxString &s , wxSize &data )
-{
- wxSscanf(s, _T("%d,%d"), &data.x , &data.y ) ;
-}
-
-template<> void wxStringWriteValue(wxString &s , const wxSize &data )
-{
- s = wxString::Format("%d,%d", data.x , data.y ) ;
-}
-
-template<> void wxStringReadValue(const wxString & , wxSize* & )
-{
- assert(0) ;
-}
-
-template<> void wxStringWriteValue(wxString & , wxSize * const & )
-{
- assert(0) ;
-}
-
-WX_CUSTOM_TYPE_INFO(wxSize)
-
-
-template<> const wxTypeInfo* wxGetTypeInfo( void * )
-{
- static wxBuiltInTypeInfo s_typeInfo( wxT_VOID ) ;
- return &s_typeInfo ;