1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Text stream classes
4 // Author: Guilhem Lavaux
8 // Copyright: (c) Guilhem Lavaux
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_TXTSTREAM_H_
13 #define _WX_TXTSTREAM_H_
16 #pragma interface "txtstrm.h"
19 #include <wx/stream.h>
23 class WXDLLEXPORT wxTextInputStream
{
25 wxTextInputStream(wxInputStream
& s
);
32 wxString
ReadString();
35 wxTextInputStream
& operator>>(wxString
& line
);
36 wxTextInputStream
& operator>>(wxChar
& c
);
37 wxTextInputStream
& operator>>(wxInt16
& i
);
38 wxTextInputStream
& operator>>(wxInt32
& i
);
39 wxTextInputStream
& operator>>(wxUint16
& i
);
40 wxTextInputStream
& operator>>(wxUint32
& i
);
41 wxTextInputStream
& operator>>(double& i
);
42 wxTextInputStream
& operator>>(float& f
);
45 wxInputStream
*m_input
;
48 class WXDLLEXPORT wxTextOutputStream
{
50 wxTextOutputStream(wxOutputStream
& s
);
51 ~wxTextOutputStream();
53 void Write32(wxUint32 i
);
54 void Write16(wxUint16 i
);
55 void Write8(wxUint8 i
);
56 void WriteDouble(double d
);
57 void WriteString(const wxString
& string
);
59 wxTextOutputStream
& operator<<(const wxChar
*string
);
60 wxTextOutputStream
& operator<<(const wxString
& string
);
61 wxTextOutputStream
& operator<<(wxChar c
);
62 wxTextOutputStream
& operator<<(wxInt16 c
);
63 wxTextOutputStream
& operator<<(wxInt32 c
);
64 wxTextOutputStream
& operator<<(wxUint16 c
);
65 wxTextOutputStream
& operator<<(wxUint32 c
);
66 wxTextOutputStream
& operator<<(double f
);
67 wxTextOutputStream
& operator<<(float f
);
70 wxOutputStream
*m_output
;