diff options
Diffstat (limited to 'doc/html/ntqdatastream.html')
-rw-r--r-- | doc/html/ntqdatastream.html | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/doc/html/ntqdatastream.html b/doc/html/ntqdatastream.html index a20fd8eab..0cea75757 100644 --- a/doc/html/ntqdatastream.html +++ b/doc/html/ntqdatastream.html @@ -55,29 +55,29 @@ to a TQIODevice. <li class=fn>void <a href="#setPrintableData"><b>setPrintableData</b></a> ( bool enable )</li> <li class=fn>int <a href="#version"><b>version</b></a> () const</li> <li class=fn>void <a href="#setVersion"><b>setVersion</b></a> ( int v )</li> -<li class=fn>TQDataStream & <a href="#operator-gt-gt"><b>operator>></b></a> ( Q_INT8 & i )</li> -<li class=fn>TQDataStream & <a href="#operator-gt-gt-2"><b>operator>></b></a> ( Q_UINT8 & i )</li> -<li class=fn>TQDataStream & <a href="#operator-gt-gt-3"><b>operator>></b></a> ( Q_INT16 & i )</li> -<li class=fn>TQDataStream & <a href="#operator-gt-gt-4"><b>operator>></b></a> ( Q_UINT16 & i )</li> -<li class=fn>TQDataStream & <a href="#operator-gt-gt-5"><b>operator>></b></a> ( Q_INT32 & i )</li> -<li class=fn>TQDataStream & <a href="#operator-gt-gt-6"><b>operator>></b></a> ( Q_UINT32 & i )</li> -<li class=fn>TQDataStream & <a href="#operator-gt-gt-7"><b>operator>></b></a> ( Q_INT64 & i )</li> -<li class=fn>TQDataStream & <a href="#operator-gt-gt-8"><b>operator>></b></a> ( Q_UINT64 & i )</li> -<li class=fn>TQDataStream & <a href="#operator-gt-gt-9"><b>operator>></b></a> ( Q_LONG & i )</li> -<li class=fn>TQDataStream & <a href="#operator-gt-gt-a"><b>operator>></b></a> ( Q_ULONG & i )</li> +<li class=fn>TQDataStream & <a href="#operator-gt-gt"><b>operator>></b></a> ( TQ_INT8 & i )</li> +<li class=fn>TQDataStream & <a href="#operator-gt-gt-2"><b>operator>></b></a> ( TQ_UINT8 & i )</li> +<li class=fn>TQDataStream & <a href="#operator-gt-gt-3"><b>operator>></b></a> ( TQ_INT16 & i )</li> +<li class=fn>TQDataStream & <a href="#operator-gt-gt-4"><b>operator>></b></a> ( TQ_UINT16 & i )</li> +<li class=fn>TQDataStream & <a href="#operator-gt-gt-5"><b>operator>></b></a> ( TQ_INT32 & i )</li> +<li class=fn>TQDataStream & <a href="#operator-gt-gt-6"><b>operator>></b></a> ( TQ_UINT32 & i )</li> +<li class=fn>TQDataStream & <a href="#operator-gt-gt-7"><b>operator>></b></a> ( TQ_INT64 & i )</li> +<li class=fn>TQDataStream & <a href="#operator-gt-gt-8"><b>operator>></b></a> ( TQ_UINT64 & i )</li> +<li class=fn>TQDataStream & <a href="#operator-gt-gt-9"><b>operator>></b></a> ( TQ_LONG & i )</li> +<li class=fn>TQDataStream & <a href="#operator-gt-gt-a"><b>operator>></b></a> ( TQ_ULONG & i )</li> <li class=fn>TQDataStream & <a href="#operator-gt-gt-b"><b>operator>></b></a> ( float & f )</li> <li class=fn>TQDataStream & <a href="#operator-gt-gt-c"><b>operator>></b></a> ( double & f )</li> <li class=fn>TQDataStream & <a href="#operator-gt-gt-d"><b>operator>></b></a> ( char *& s )</li> -<li class=fn>TQDataStream & <a href="#operator-lt-lt"><b>operator<<</b></a> ( Q_INT8 i )</li> -<li class=fn>TQDataStream & <a href="#operator-lt-lt-2"><b>operator<<</b></a> ( Q_UINT8 i )</li> -<li class=fn>TQDataStream & <a href="#operator-lt-lt-3"><b>operator<<</b></a> ( Q_INT16 i )</li> -<li class=fn>TQDataStream & <a href="#operator-lt-lt-4"><b>operator<<</b></a> ( Q_UINT16 i )</li> -<li class=fn>TQDataStream & <a href="#operator-lt-lt-5"><b>operator<<</b></a> ( Q_INT32 i )</li> -<li class=fn>TQDataStream & <a href="#operator-lt-lt-6"><b>operator<<</b></a> ( Q_UINT32 i )</li> -<li class=fn>TQDataStream & <a href="#operator-lt-lt-7"><b>operator<<</b></a> ( Q_INT64 i )</li> -<li class=fn>TQDataStream & <a href="#operator-lt-lt-8"><b>operator<<</b></a> ( Q_UINT64 i )</li> -<li class=fn>TQDataStream & <a href="#operator-lt-lt-9"><b>operator<<</b></a> ( Q_LONG i )</li> -<li class=fn>TQDataStream & <a href="#operator-lt-lt-a"><b>operator<<</b></a> ( Q_ULONG i )</li> +<li class=fn>TQDataStream & <a href="#operator-lt-lt"><b>operator<<</b></a> ( TQ_INT8 i )</li> +<li class=fn>TQDataStream & <a href="#operator-lt-lt-2"><b>operator<<</b></a> ( TQ_UINT8 i )</li> +<li class=fn>TQDataStream & <a href="#operator-lt-lt-3"><b>operator<<</b></a> ( TQ_INT16 i )</li> +<li class=fn>TQDataStream & <a href="#operator-lt-lt-4"><b>operator<<</b></a> ( TQ_UINT16 i )</li> +<li class=fn>TQDataStream & <a href="#operator-lt-lt-5"><b>operator<<</b></a> ( TQ_INT32 i )</li> +<li class=fn>TQDataStream & <a href="#operator-lt-lt-6"><b>operator<<</b></a> ( TQ_UINT32 i )</li> +<li class=fn>TQDataStream & <a href="#operator-lt-lt-7"><b>operator<<</b></a> ( TQ_INT64 i )</li> +<li class=fn>TQDataStream & <a href="#operator-lt-lt-8"><b>operator<<</b></a> ( TQ_UINT64 i )</li> +<li class=fn>TQDataStream & <a href="#operator-lt-lt-9"><b>operator<<</b></a> ( TQ_LONG i )</li> +<li class=fn>TQDataStream & <a href="#operator-lt-lt-a"><b>operator<<</b></a> ( TQ_ULONG i )</li> <li class=fn>TQDataStream & <a href="#operator-lt-lt-b"><b>operator<<</b></a> ( float f )</li> <li class=fn>TQDataStream & <a href="#operator-lt-lt-c"><b>operator<<</b></a> ( double f )</li> <li class=fn>TQDataStream & <a href="#operator-lt-lt-d"><b>operator<<</b></a> ( const char * s )</li> @@ -113,7 +113,7 @@ data to. The <a href="ntqfile.html">TQFile</a> class is an example of an IO devi file.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_WriteOnly</a> ); TQDataStream stream( &file ); // we will serialize the data into the file stream << "the answer is"; // serialize a string - stream << (Q_INT32)42; // serialize an integer + stream << (TQ_INT32)42; // serialize an integer </pre> <p> Example (read binary data from a stream): @@ -122,7 +122,7 @@ data to. The <a href="ntqfile.html">TQFile</a> class is an example of an IO devi file.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ); TQDataStream stream( &file ); // read the data serialized from the file <a href="ntqstring.html">TQString</a> str; - Q_INT32 a; + TQ_INT32 a; stream >> str >> a; // extract "the answer is" and 42 </pre> @@ -161,8 +161,8 @@ number to give yourself room for future expansion. For example: TQDataStream stream( &file ); // Write a header with a "magic number" and a version - stream << (Q_UINT32)0xA0B0C0D0; - stream << (Q_INT32)123; + stream << (TQ_UINT32)0xA0B0C0D0; + stream << (TQ_INT32)123; // Write the data stream << [lots of interesting data] @@ -175,13 +175,13 @@ number to give yourself room for future expansion. For example: TQDataStream stream( &file ); // Read and check the header - Q_UINT32 magic; + TQ_UINT32 magic; stream >> magic; if ( magic != 0xA0B0C0D0 ) return XXX_BAD_FILE_FORMAT; // Read the version - Q_INT32 version; + TQ_INT32 version; stream >> version; if ( version < 100 ) return XXX_BAD_FILE_TOO_OLD; @@ -212,11 +212,11 @@ written to the stream using <a href="#writeRawBytes">writeRawBytes</a>(). Notice encoding/decoding of the data must be done by you. <p> A similar pair of functions is <a href="#readBytes">readBytes</a>() and <a href="#writeBytes">writeBytes</a>(). These differ from their <em>raw</em> counterparts as follows: readBytes() -reads a Q_UINT32 which is taken to be the length of the data to be +reads a TQ_UINT32 which is taken to be the length of the data to be read, then that number of bytes is read into the preallocated -char*; writeBytes() writes a Q_UINT32 containing the length of the +char*; writeBytes() writes a TQ_UINT32 containing the length of the data, followed by the data. Notice that any encoding/decoding of -the data (apart from the length Q_UINT32) must be done by you. +the data (apart from the length TQ_UINT32) must be done by you. <p> <p>See also <a href="ntqtextstream.html">TQTextStream</a>, <a href="ntqvariant.html">TQVariant</a>, and <a href="io.html">Input/Output and Networking</a>. <hr><h2>Member Type Documentation</h2> @@ -304,60 +304,60 @@ device is somewhere before the end position. returns FALSE. <p> <p>See also <a href="#setPrintableData">setPrintableData</a>(). -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt"></a>TQDataStream::operator<< ( Q_INT8 i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt"></a>TQDataStream::operator<< ( TQ_INT8 i ) </h3> Writes a signed byte, <em>i</em>, to the stream and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-2"></a>TQDataStream::operator<< ( Q_UINT8 i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-2"></a>TQDataStream::operator<< ( TQ_UINT8 i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Writes an unsigned byte, <em>i</em>, to the stream and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-3"></a>TQDataStream::operator<< ( Q_INT16 i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-3"></a>TQDataStream::operator<< ( TQ_INT16 i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Writes a signed 16-bit integer, <em>i</em>, to the stream and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-4"></a>TQDataStream::operator<< ( Q_UINT16 i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-4"></a>TQDataStream::operator<< ( TQ_UINT16 i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Writes an unsigned 16-bit integer, <em>i</em>, to the stream and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-5"></a>TQDataStream::operator<< ( Q_INT32 i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-5"></a>TQDataStream::operator<< ( TQ_INT32 i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Writes a signed 32-bit integer, <em>i</em>, to the stream and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-6"></a>TQDataStream::operator<< ( Q_UINT32 i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-6"></a>TQDataStream::operator<< ( TQ_UINT32 i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Writes an unsigned integer, <em>i</em>, to the stream as a 32-bit -unsigned integer (Q_UINT32). Returns a reference to the stream. +unsigned integer (TQ_UINT32). Returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-7"></a>TQDataStream::operator<< ( Q_INT64 i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-7"></a>TQDataStream::operator<< ( TQ_INT64 i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Writes a signed 64-bit integer, <em>i</em>, to the stream and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-8"></a>TQDataStream::operator<< ( Q_UINT64 i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-8"></a>TQDataStream::operator<< ( TQ_UINT64 i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Writes an unsigned 64-bit integer, <em>i</em>, to the stream and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-9"></a>TQDataStream::operator<< ( Q_LONG i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-9"></a>TQDataStream::operator<< ( TQ_LONG i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Writes a signed integer <em>i</em>, of the system's word length, to the stream and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-a"></a>TQDataStream::operator<< ( Q_ULONG i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-lt-lt-a"></a>TQDataStream::operator<< ( TQ_ULONG i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Writes an unsigned integer <em>i</em>, of the system's word length, to @@ -382,60 +382,60 @@ This is an overloaded member function, provided for convenience. It behaves esse reference to the stream. <p> The string is serialized using <a href="#writeBytes">writeBytes</a>(). -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt"></a>TQDataStream::operator>> ( Q_INT8 & i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt"></a>TQDataStream::operator>> ( TQ_INT8 & i ) </h3> Reads a signed byte from the stream into <em>i</em>, and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-2"></a>TQDataStream::operator>> ( Q_UINT8 & i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-2"></a>TQDataStream::operator>> ( TQ_UINT8 & i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads an unsigned byte from the stream into <em>i</em>, and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-3"></a>TQDataStream::operator>> ( Q_INT16 & i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-3"></a>TQDataStream::operator>> ( TQ_INT16 & i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads a signed 16-bit integer from the stream into <em>i</em>, and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-4"></a>TQDataStream::operator>> ( Q_UINT16 & i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-4"></a>TQDataStream::operator>> ( TQ_UINT16 & i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads an unsigned 16-bit integer from the stream into <em>i</em>, and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-5"></a>TQDataStream::operator>> ( Q_INT32 & i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-5"></a>TQDataStream::operator>> ( TQ_INT32 & i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads a signed 32-bit integer from the stream into <em>i</em>, and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-6"></a>TQDataStream::operator>> ( Q_UINT32 & i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-6"></a>TQDataStream::operator>> ( TQ_UINT32 & i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads an unsigned 32-bit integer from the stream into <em>i</em>, and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-7"></a>TQDataStream::operator>> ( Q_INT64 & i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-7"></a>TQDataStream::operator>> ( TQ_INT64 & i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads a signed 64-bit integer from the stream into <em>i</em>, and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-8"></a>TQDataStream::operator>> ( Q_UINT64 & i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-8"></a>TQDataStream::operator>> ( TQ_UINT64 & i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads an unsigned 64-bit integer from the stream, into <em>i</em>, and returns a reference to the stream. -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-9"></a>TQDataStream::operator>> ( Q_LONG & i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-9"></a>TQDataStream::operator>> ( TQ_LONG & i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads a signed integer of the system's word length from the stream into <em>i</em>, and returns a reference to the stream. <p> -<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-a"></a>TQDataStream::operator>> ( Q_ULONG & i ) +<h3 class=fn><a href="ntqdatastream.html">TQDataStream</a> & <a name="operator-gt-gt-a"></a>TQDataStream::operator>> ( TQ_ULONG & i ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Reads an unsigned integer of the system's word length from the @@ -470,7 +470,7 @@ the stream. <p> The buffer <em>s</em> is allocated using <tt>new</tt>. Destroy it with the <tt>delete[]</tt> operator. If the length is zero or <em>s</em> cannot be allocated, <em>s</em> is set to 0. <p> The <em>l</em> parameter will be set to the length of the buffer. -<p> The serialization format is a Q_UINT32 length specifier first, +<p> The serialization format is a TQ_UINT32 length specifier first, then <em>l</em> bytes of data. Note that the data is <em>not</em> encoded. <p> <p>See also <a href="#readRawBytes">readRawBytes</a>() and <a href="#writeBytes">writeBytes</a>(). @@ -547,7 +547,7 @@ Unsets the IO device. This is the same as calling <a href="#setDevice">setDevice </h3> Writes the length specifier <em>len</em> and the buffer <em>s</em> to the stream and returns a reference to the stream. -<p> The <em>len</em> is serialized as a Q_UINT32, followed by <em>len</em> bytes +<p> The <em>len</em> is serialized as a TQ_UINT32, followed by <em>len</em> bytes from <em>s</em>. Note that the data is <em>not</em> encoded. <p> <p>See also <a href="#writeRawBytes">writeRawBytes</a>() and <a href="#readBytes">readBytes</a>(). |