added wxDateTime to the streamable custom types

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2003-08-21 06:30:19 +00:00
parent 986a98c6e9
commit c1d6d0f9e8

View File

@ -30,6 +30,7 @@
#include "wx/tokenzr.h"
#include "wx/notebook.h"
#include "wx/list.h"
#include "wx/datetime.h"
#include <string.h>
#if wxUSE_EXTENDED_RTTI
@ -290,6 +291,21 @@ template<> void wxStringWriteValue(wxString & , wxSize * const & )
WX_CUSTOM_TYPE_INFO(wxSize)
template<> void wxStringReadValue(const wxString &s , wxDateTime &data )
{
data.ParseFormat(s,wxT("%Y-%m-%d %H:%M:%S")) ;
}
template<> void wxStringWriteValue(wxString &s , const wxDateTime &data )
{
s = data.Format(wxT("%Y-%m-%d %H:%M:%S")) ;
}
WX_CUSTOM_TYPE_INFO(wxDateTime)
//
// built-ins
//
template<> const wxTypeInfo* wxGetTypeInfo( void * )
{