| [190] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 | 
|---|
 | 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/tools/qtextstream.cpp:2373 -->
 | 
|---|
 | 3 | <html>
 | 
|---|
 | 4 | <head>
 | 
|---|
 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 | 
|---|
 | 6 | <title>QTextIStream Class</title>
 | 
|---|
 | 7 | <style type="text/css"><!--
 | 
|---|
 | 8 | fn { margin-left: 1cm; text-indent: -1cm; }
 | 
|---|
 | 9 | a:link { color: #004faf; text-decoration: none }
 | 
|---|
 | 10 | a:visited { color: #672967; text-decoration: none }
 | 
|---|
 | 11 | body { background: #ffffff; color: black; }
 | 
|---|
 | 12 | --></style>
 | 
|---|
 | 13 | </head>
 | 
|---|
 | 14 | <body>
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
 | 
|---|
 | 17 | <tr bgcolor="#E5E5E5">
 | 
|---|
 | 18 | <td valign=center>
 | 
|---|
 | 19 |  <a href="index.html">
 | 
|---|
 | 20 | <font color="#004faf">Home</font></a>
 | 
|---|
 | 21 |  | <a href="classes.html">
 | 
|---|
 | 22 | <font color="#004faf">All Classes</font></a>
 | 
|---|
 | 23 |  | <a href="mainclasses.html">
 | 
|---|
 | 24 | <font color="#004faf">Main Classes</font></a>
 | 
|---|
 | 25 |  | <a href="annotated.html">
 | 
|---|
 | 26 | <font color="#004faf">Annotated</font></a>
 | 
|---|
 | 27 |  | <a href="groups.html">
 | 
|---|
 | 28 | <font color="#004faf">Grouped Classes</font></a>
 | 
|---|
 | 29 |  | <a href="functions.html">
 | 
|---|
 | 30 | <font color="#004faf">Functions</font></a>
 | 
|---|
 | 31 | </td>
 | 
|---|
 | 32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QTextIStream Class Reference</h1>
 | 
|---|
 | 33 | 
 | 
|---|
 | 34 | <p>The QTextIStream class is a convenience class for input streams.
 | 
|---|
 | 35 | <a href="#details">More...</a>
 | 
|---|
 | 36 | <p>All the functions in this class are <a href="threads.html#reentrant">reentrant</a> when Qt is built with thread support.</p>
 | 
|---|
 | 37 | <p><tt>#include <<a href="qtextstream-h.html">qtextstream.h</a>></tt>
 | 
|---|
 | 38 | <p>Inherits <a href="qtextstream.html">QTextStream</a>.
 | 
|---|
 | 39 | <p><a href="qtextistream-members.html">List of all member functions.</a>
 | 
|---|
 | 40 | <h2>Public Members</h2>
 | 
|---|
 | 41 | <ul>
 | 
|---|
 | 42 | <li class=fn><a href="#QTextIStream"><b>QTextIStream</b></a> ( const QString * s )</li>
 | 
|---|
 | 43 | <li class=fn><a href="#QTextIStream-2"><b>QTextIStream</b></a> ( QByteArray ba )</li>
 | 
|---|
 | 44 | <li class=fn><a href="#QTextIStream-3"><b>QTextIStream</b></a> ( FILE * f )</li>
 | 
|---|
 | 45 | </ul>
 | 
|---|
 | 46 | <hr><a name="details"></a><h2>Detailed Description</h2>
 | 
|---|
 | 47 | 
 | 
|---|
 | 48 | 
 | 
|---|
 | 49 | 
 | 
|---|
 | 50 | The QTextIStream class is a convenience class for input streams.
 | 
|---|
 | 51 | <p> 
 | 
|---|
 | 52 | 
 | 
|---|
 | 53 | <p> This class provides a shorthand for creating simple input
 | 
|---|
 | 54 | <a href="qtextstream.html">QTextStream</a>s without having to pass a <em>mode</em> argument to the
 | 
|---|
 | 55 | constructor.
 | 
|---|
 | 56 | <p> This class makes it easy, for example, to write things like this:
 | 
|---|
 | 57 | <pre>
 | 
|---|
 | 58 |     <a href="qstring.html">QString</a> data = "123 456";
 | 
|---|
 | 59 |     int a, b;
 | 
|---|
 | 60 |     <a href="#QTextIStream">QTextIStream</a>(&data) >> a >> b;
 | 
|---|
 | 61 |     </pre>
 | 
|---|
 | 62 |  
 | 
|---|
 | 63 | <p> <p>See also <a href="qtextostream.html">QTextOStream</a>, <a href="io.html">Input/Output and Networking</a>, and <a href="text.html">Text Related Classes</a>.
 | 
|---|
 | 64 | 
 | 
|---|
 | 65 | <hr><h2>Member Function Documentation</h2>
 | 
|---|
 | 66 | <h3 class=fn><a name="QTextIStream"></a>QTextIStream::QTextIStream ( const <a href="qstring.html">QString</a> * s )
 | 
|---|
 | 67 | </h3>
 | 
|---|
 | 68 | 
 | 
|---|
 | 69 | <p> Constructs a stream to read from the string <em>s</em>.
 | 
|---|
 | 70 | 
 | 
|---|
 | 71 | <h3 class=fn><a name="QTextIStream-2"></a>QTextIStream::QTextIStream ( <a href="qbytearray.html">QByteArray</a> ba )
 | 
|---|
 | 72 | </h3>
 | 
|---|
 | 73 | 
 | 
|---|
 | 74 | <p> Constructs a stream to read from the array <em>ba</em>.
 | 
|---|
 | 75 | 
 | 
|---|
 | 76 | <h3 class=fn><a name="QTextIStream-3"></a>QTextIStream::QTextIStream ( FILE * f )
 | 
|---|
 | 77 | </h3>
 | 
|---|
 | 78 | 
 | 
|---|
 | 79 | <p> Constructs a stream to read from the file <em>f</em>.
 | 
|---|
 | 80 | 
 | 
|---|
 | 81 | <!-- eof -->
 | 
|---|
 | 82 | <hr><p>
 | 
|---|
 | 83 | This file is part of the <a href="index.html">Qt toolkit</a>.
 | 
|---|
 | 84 | Copyright © 1995-2007
 | 
|---|
 | 85 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
 | 
|---|
 | 86 | <table width=100% cellspacing=0 border=0><tr>
 | 
|---|
 | 87 | <td>Copyright © 2007
 | 
|---|
 | 88 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
 | 
|---|
 | 89 | <td align=right><div align=right>Qt 3.3.8</div>
 | 
|---|
 | 90 | </table></div></address></body>
 | 
|---|
 | 91 | </html>
 | 
|---|