]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/datstrm.tex
added wxJPEGHandler
[wxWidgets.git] / docs / latex / wx / datstrm.tex
CommitLineData
4d1f281b
GL
1\section{\class{wxDataStream}}\label{wxdatastream}
2
3This class provides functions that read and write integers or double in a
4portable way. So, a file written by an Intel processor can be read by a
5Sparc or anything else.
6
7\latexignore{\rtfignore{\wxheading{Members}}}
8
f7bd2698 9\membersection{wxDataStream::wxDataStream}\label{wxdatastreamconstr}
4d1f281b
GL
10
11\func{}{wxDataStream}{\param{istream\&}{ stream}}
12
13Constructs a datastream object from a C++ input stream. Only read methods will
14be available.
15
16\wxheading{Parameters}
17
18\docparam{stream}{The C++ input stream.}
19
20\func{}{wxDataStream}{\param{istream\&}{ stream}}
21
22Constructs a datastream object from a C++ input stream. Only read methods will
23be available.
24
25\wxheading{Parameters}
26
27\docparam{stream}{The C++ input stream.}
28
29\membersection{wxDataStream::\destruct{wxDataStream}}
30
31\func{}{\destruct{wxDataStream}}{\void}
32
33Destroys the wxDataStream object.
34
35\membersection{wxDataStream::Read8}
36
37\func{unsigned char}{Read8}{\void}
38
39Reads a single byte from the stream.
40
41\membersection{wxDataStream::Read16}
42
43\func{unsigned short}{Read16}{\void}
44
45Reads a 16 bit integer from the stream.
46
47\membersection{wxDataStream::Read32}
48
49\func{unsigned long}{Read32}{\void}
50
51Reads a 32 bit integer from the stream.
52
53\membersection{wxDataStream::ReadDouble}
54
55\func{double}{ReadDouble}{\void}
56
57Reads a double (IEEE encoded) from the stream.
58
59\membersection{wxDataStream::ReadString}
60
61\func{wxString}{wxDataStream::ReadString}{\void}
62
63Reads a string from a stream. Actually, this function first reads a byte
64specifying the length of the string (without the last null character) and then
65reads the string.
66
67\membersection{wxDataStream::ReadLine}
68
69\func{wxString}{wxDataStream::ReadLine}{\void}
70
71Reads a line from the stream. A line is a string which ends with \\n or \\r\\n.
72
73\membersection{wxDataStream::Write8}
74
75\func{void}{wxDataStream::Write8}{{\param unsigned char }{i8}}
76
77Writes the single byte {\it i8} to the stream.
78
79\membersection{wxDataStream::Write16}
80
81\func{void}{wxDataStream::Write16}{{\param unsigned short }{i16}}
82
83Writes the 16 bit integer {\it i16} to the stream.
84
85\membersection{wxDataStream::Write32}
86
87\func{void}{wxDataStream::Write32}{{\param unsigned long }{i32}}
88
89Writes the 32 bit integer {\it i32} to the stream.
90
91\membersection{wxDataStream::WriteDouble}
92
93\func{void}{wxDataStream::WriteDouble}{{\param double }{f}}
94
95Writes the double {\it f} to the stream using the IEEE format.
96
97\membersection{wxDataStream::WriteString}
98
e14dccff 99\func{void}{wxDataStream::WriteString}{{\param const wxString\& }{string}}
4d1f281b
GL
100
101Writes {\it string} to the stream. Actually, this method writes the size of
102the string before writing {\it string} itself.
103
104\membersection{wxDataStream::WriteLine}
105
e14dccff 106\func{void}{wxDataStream::WriteLine}{{\param const wxString\& }{string}}
4d1f281b
GL
107
108Writes {\it string} as a line. Depending on the operating system, it adds
109\\n or \\r\\n.
e14dccff
KB
110
111%%% Local Variables:
112%%% mode: latex
113%%% TeX-master: "referenc"
114%%% End: