File: wx62.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (98 lines) | stat: -rw-r--r-- 3,204 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<HTML>
<head><title>wxDataInputStream</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxdatainputstream"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx61.htm#wxdataobject"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx63.htm#wxdataoutputstream"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxDataInputStream</H2>
<P>
This class provides functions that read data types in a
portable way. So, a file written by an Intel processor can be read by a
Sparc or anything else.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx97.htm#wxfilterinputstream">wxFilterInputStream</A><BR>

<A HREF="wx120.htm#wxinputstream">wxInputStream</A><BR>

<A HREF="wx222.htm#wxstreambase">wxStreamBase</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/datstrm.h&gt;<P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxdatainputstreamconstr">wxDataInputStream::wxDataInputStream</A><BR>
<A HREF="#topic175">wxDataInputStream::~wxDataInputStream</A><BR>
<A HREF="#topic176">wxDataInputStream::Read8</A><BR>
<A HREF="#topic177">wxDataInputStream::Read16</A><BR>
<A HREF="#topic178">wxDataInputStream::Read32</A><BR>
<A HREF="#topic179">wxDataInputStream::ReadDouble</A><BR>
<A HREF="#topic180">wxDataInputStream::ReadLine</A><BR>
<A HREF="#topic181">wxDataInputStream::ReadString</A><BR>
<P>

<HR>
<A NAME="wxdatainputstreamconstr"></A>
<H3>wxDataInputStream::wxDataInputStream</H3>
<P>
<B></B> <B>wxDataInputStream</B>(<B>wxInputStream&amp;</B><I> stream</I>)<P>
Constructs a datastream object from an input stream. Only read methods will
be available.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>stream</I><UL><UL>
The input stream.</UL></UL>
<P>

<HR>
<A NAME="topic175"></A>
<H3>wxDataInputStream::~wxDataInputStream</H3>
<P>
<B></B> <B>~wxDataInputStream</B>()<P>
Destroys the wxDataInputStream object.<P>

<HR>
<A NAME="topic176"></A>
<H3>wxDataInputStream::Read8</H3>
<P>
<B>unsigned char</B> <B>Read8</B>()<P>
Reads a single byte from the stream.<P>

<HR>
<A NAME="topic177"></A>
<H3>wxDataInputStream::Read16</H3>
<P>
<B>unsigned short</B> <B>Read16</B>()<P>
Reads a 16 bit integer from the stream.<P>

<HR>
<A NAME="topic178"></A>
<H3>wxDataInputStream::Read32</H3>
<P>
<B>unsigned long</B> <B>Read32</B>()<P>
Reads a 32 bit integer from the stream.<P>

<HR>
<A NAME="topic179"></A>
<H3>wxDataInputStream::ReadDouble</H3>
<P>
<B>double</B> <B>ReadDouble</B>()<P>
Reads a double (IEEE encoded) from the stream.<P>

<HR>
<A NAME="topic180"></A>
<H3>wxDataInputStream::ReadLine</H3>
<P>
<B>wxString</B> <B>wxDataInputStream::ReadLine</B>()<P>
Reads a line from the stream. A line is a string which ends with <BR>
n or <BR>
r<BR>
n.<P>

<HR>
<A NAME="topic181"></A>
<H3>wxDataInputStream::ReadString</H3>
<P>
<B>wxString</B> <B>wxDataInputStream::ReadString</B>()<P>
Reads a string from a stream. Actually, this function first reads a long integer
specifying the length of the string (without the last null character) and then
reads the string.<P>

</BODY></HTML>