From 6dec101d43dcbd4195c47d54bd388db1a8d7230e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 17 Jun 2012 17:28:28 -0500 Subject: Automated update from Qt3 --- doc/html/ntqdatastream.html | 104 ++++++++++++++++++++++---------------------- 1 file changed, 52 insertions(+), 52 deletions(-) (limited to 'doc/html/ntqdatastream.html') 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.
  • void setPrintableData ( bool enable )
  • int version () const
  • void setVersion ( int v )
  • -
  • TQDataStream & operator>> ( Q_INT8 & i )
  • -
  • TQDataStream & operator>> ( Q_UINT8 & i )
  • -
  • TQDataStream & operator>> ( Q_INT16 & i )
  • -
  • TQDataStream & operator>> ( Q_UINT16 & i )
  • -
  • TQDataStream & operator>> ( Q_INT32 & i )
  • -
  • TQDataStream & operator>> ( Q_UINT32 & i )
  • -
  • TQDataStream & operator>> ( Q_INT64 & i )
  • -
  • TQDataStream & operator>> ( Q_UINT64 & i )
  • -
  • TQDataStream & operator>> ( Q_LONG & i )
  • -
  • TQDataStream & operator>> ( Q_ULONG & i )
  • +
  • TQDataStream & operator>> ( TQ_INT8 & i )
  • +
  • TQDataStream & operator>> ( TQ_UINT8 & i )
  • +
  • TQDataStream & operator>> ( TQ_INT16 & i )
  • +
  • TQDataStream & operator>> ( TQ_UINT16 & i )
  • +
  • TQDataStream & operator>> ( TQ_INT32 & i )
  • +
  • TQDataStream & operator>> ( TQ_UINT32 & i )
  • +
  • TQDataStream & operator>> ( TQ_INT64 & i )
  • +
  • TQDataStream & operator>> ( TQ_UINT64 & i )
  • +
  • TQDataStream & operator>> ( TQ_LONG & i )
  • +
  • TQDataStream & operator>> ( TQ_ULONG & i )
  • TQDataStream & operator>> ( float & f )
  • TQDataStream & operator>> ( double & f )
  • TQDataStream & operator>> ( char *& s )
  • -
  • TQDataStream & operator<< ( Q_INT8 i )
  • -
  • TQDataStream & operator<< ( Q_UINT8 i )
  • -
  • TQDataStream & operator<< ( Q_INT16 i )
  • -
  • TQDataStream & operator<< ( Q_UINT16 i )
  • -
  • TQDataStream & operator<< ( Q_INT32 i )
  • -
  • TQDataStream & operator<< ( Q_UINT32 i )
  • -
  • TQDataStream & operator<< ( Q_INT64 i )
  • -
  • TQDataStream & operator<< ( Q_UINT64 i )
  • -
  • TQDataStream & operator<< ( Q_LONG i )
  • -
  • TQDataStream & operator<< ( Q_ULONG i )
  • +
  • TQDataStream & operator<< ( TQ_INT8 i )
  • +
  • TQDataStream & operator<< ( TQ_UINT8 i )
  • +
  • TQDataStream & operator<< ( TQ_INT16 i )
  • +
  • TQDataStream & operator<< ( TQ_UINT16 i )
  • +
  • TQDataStream & operator<< ( TQ_INT32 i )
  • +
  • TQDataStream & operator<< ( TQ_UINT32 i )
  • +
  • TQDataStream & operator<< ( TQ_INT64 i )
  • +
  • TQDataStream & operator<< ( TQ_UINT64 i )
  • +
  • TQDataStream & operator<< ( TQ_LONG i )
  • +
  • TQDataStream & operator<< ( TQ_ULONG i )
  • TQDataStream & operator<< ( float f )
  • TQDataStream & operator<< ( double f )
  • TQDataStream & operator<< ( const char * s )
  • @@ -113,7 +113,7 @@ data to. The TQFile class is an example of an IO devi file.open( IO_WriteOnly ); 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

    Example (read binary data from a stream): @@ -122,7 +122,7 @@ data to. The TQFile class is an example of an IO devi file.open( IO_ReadOnly ); TQDataStream stream( &file ); // read the data serialized from the file TQString str; - Q_INT32 a; + TQ_INT32 a; stream >> str >> a; // extract "the answer is" and 42 @@ -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 writeRawBytes(). Notice encoding/decoding of the data must be done by you.

    A similar pair of functions is readBytes() and writeBytes(). These differ from their raw 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.

    See also TQTextStream, TQVariant, and Input/Output and Networking.


    Member Type Documentation

    @@ -304,60 +304,60 @@ device is somewhere before the end position. returns FALSE.

    See also setPrintableData(). -

    TQDataStream & TQDataStream::operator<< ( Q_INT8 i ) +

    TQDataStream & TQDataStream::operator<< ( TQ_INT8 i )

    Writes a signed byte, i, to the stream and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator<< ( Q_UINT8 i ) +

    TQDataStream & TQDataStream::operator<< ( TQ_UINT8 i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Writes an unsigned byte, i, to the stream and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator<< ( Q_INT16 i ) +

    TQDataStream & TQDataStream::operator<< ( TQ_INT16 i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Writes a signed 16-bit integer, i, to the stream and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator<< ( Q_UINT16 i ) +

    TQDataStream & TQDataStream::operator<< ( TQ_UINT16 i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Writes an unsigned 16-bit integer, i, to the stream and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator<< ( Q_INT32 i ) +

    TQDataStream & TQDataStream::operator<< ( TQ_INT32 i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Writes a signed 32-bit integer, i, to the stream and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator<< ( Q_UINT32 i ) +

    TQDataStream & TQDataStream::operator<< ( TQ_UINT32 i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Writes an unsigned integer, i, 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. -

    TQDataStream & TQDataStream::operator<< ( Q_INT64 i ) +

    TQDataStream & TQDataStream::operator<< ( TQ_INT64 i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Writes a signed 64-bit integer, i, to the stream and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator<< ( Q_UINT64 i ) +

    TQDataStream & TQDataStream::operator<< ( TQ_UINT64 i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Writes an unsigned 64-bit integer, i, to the stream and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator<< ( Q_LONG i ) +

    TQDataStream & TQDataStream::operator<< ( TQ_LONG i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Writes a signed integer i, of the system's word length, to the stream and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator<< ( Q_ULONG i ) +

    TQDataStream & TQDataStream::operator<< ( TQ_ULONG i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Writes an unsigned integer i, 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.

    The string is serialized using writeBytes(). -

    TQDataStream & TQDataStream::operator>> ( Q_INT8 & i ) +

    TQDataStream & TQDataStream::operator>> ( TQ_INT8 & i )

    Reads a signed byte from the stream into i, and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator>> ( Q_UINT8 & i ) +

    TQDataStream & TQDataStream::operator>> ( TQ_UINT8 & i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Reads an unsigned byte from the stream into i, and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator>> ( Q_INT16 & i ) +

    TQDataStream & TQDataStream::operator>> ( TQ_INT16 & i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Reads a signed 16-bit integer from the stream into i, and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator>> ( Q_UINT16 & i ) +

    TQDataStream & TQDataStream::operator>> ( TQ_UINT16 & i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Reads an unsigned 16-bit integer from the stream into i, and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator>> ( Q_INT32 & i ) +

    TQDataStream & TQDataStream::operator>> ( TQ_INT32 & i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Reads a signed 32-bit integer from the stream into i, and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator>> ( Q_UINT32 & i ) +

    TQDataStream & TQDataStream::operator>> ( TQ_UINT32 & i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Reads an unsigned 32-bit integer from the stream into i, and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator>> ( Q_INT64 & i ) +

    TQDataStream & TQDataStream::operator>> ( TQ_INT64 & i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Reads a signed 64-bit integer from the stream into i, and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator>> ( Q_UINT64 & i ) +

    TQDataStream & TQDataStream::operator>> ( TQ_UINT64 & i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Reads an unsigned 64-bit integer from the stream, into i, and returns a reference to the stream. -

    TQDataStream & TQDataStream::operator>> ( Q_LONG & i ) +

    TQDataStream & TQDataStream::operator>> ( TQ_LONG & i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Reads a signed integer of the system's word length from the stream into i, and returns a reference to the stream.

    -

    TQDataStream & TQDataStream::operator>> ( Q_ULONG & i ) +

    TQDataStream & TQDataStream::operator>> ( TQ_ULONG & i )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    Reads an unsigned integer of the system's word length from the @@ -470,7 +470,7 @@ the stream.

    The buffer s is allocated using new. Destroy it with the delete[] operator. If the length is zero or s cannot be allocated, s is set to 0.

    The l parameter will be set to the length of the buffer. -

    The serialization format is a Q_UINT32 length specifier first, +

    The serialization format is a TQ_UINT32 length specifier first, then l bytes of data. Note that the data is not encoded.

    See also readRawBytes() and writeBytes(). @@ -547,7 +547,7 @@ Unsets the IO device. This is the same as calling setDevice Writes the length specifier len and the buffer s to the stream and returns a reference to the stream. -

    The len is serialized as a Q_UINT32, followed by len bytes +

    The len is serialized as a TQ_UINT32, followed by len bytes from s. Note that the data is not encoded.

    See also writeRawBytes() and readBytes(). -- cgit v1.2.1