source: trunk/doc/html/qtextostream.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 3.7 KB
Line 
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:2412 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QTextOStream Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { 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&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;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&nbsp;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>QTextOStream Class Reference</h1>
33
34<p>The QTextOStream class is a convenience class for output 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 &lt;<a href="qtextstream-h.html">qtextstream.h</a>&gt;</tt>
38<p>Inherits <a href="qtextstream.html">QTextStream</a>.
39<p><a href="qtextostream-members.html">List of all member functions.</a>
40<h2>Public Members</h2>
41<ul>
42<li class=fn><a href="#QTextOStream"><b>QTextOStream</b></a> ( QString&nbsp;*&nbsp;s )</li>
43<li class=fn><a href="#QTextOStream-2"><b>QTextOStream</b></a> ( QByteArray&nbsp;ba )</li>
44<li class=fn><a href="#QTextOStream-3"><b>QTextOStream</b></a> ( FILE&nbsp;*&nbsp;f )</li>
45</ul>
46<hr><a name="details"></a><h2>Detailed Description</h2>
47
48
49
50The QTextOStream class is a convenience class for output streams.
51<p>
52
53<p> This class provides a shorthand for creating simple output
54<a href="qtextstream.html">QTextStream</a>s without having to pass a <em>mode</em> argument to the
55constructor.
56<p> This makes it easy for example, to write things like this:
57<pre>
58 <a href="qstring.html">QString</a> result;
59 <a href="#QTextOStream">QTextOStream</a>(&amp;result) &lt;&lt; "pi = " &lt;&lt; 3.14;
60 </pre>
61
62<p>See also <a href="io.html">Input/Output and Networking</a> and <a href="text.html">Text Related Classes</a>.
63
64<hr><h2>Member Function Documentation</h2>
65<h3 class=fn><a name="QTextOStream"></a>QTextOStream::QTextOStream ( <a href="qstring.html">QString</a>&nbsp;*&nbsp;s )
66</h3>
67
68<p> Constructs a stream to write to string <em>s</em>.
69
70<h3 class=fn><a name="QTextOStream-2"></a>QTextOStream::QTextOStream ( <a href="qbytearray.html">QByteArray</a>&nbsp;ba )
71</h3>
72
73<p> Constructs a stream to write to the array <em>ba</em>.
74
75<h3 class=fn><a name="QTextOStream-3"></a>QTextOStream::QTextOStream ( FILE&nbsp;*&nbsp;f )
76</h3>
77
78<p> Constructs a stream to write to the file <em>f</em>.
79
80<!-- eof -->
81<hr><p>
82This file is part of the <a href="index.html">Qt toolkit</a>.
83Copyright &copy; 1995-2007
84<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
85<table width=100% cellspacing=0 border=0><tr>
86<td>Copyright &copy; 2007
87<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
88<td align=right><div align=right>Qt 3.3.8</div>
89</table></div></address></body>
90</html>
Note: See TracBrowser for help on using the repository browser.