Accelerated Computation Engine
Public Member Functions | List of all members
EDataStream Class Reference

#include <edatastream.h>

Inheritance diagram for EDataStream:

Public Member Functions

const EDataStreamoperator>> (qint8 &value) const
 
const EDataStreamoperator>> (qint16 &value) const
 
const EDataStreamoperator>> (qint32 &value) const
 
const EDataStreamoperator>> (qint64 &value) const
 
const EDataStreamoperator>> (quint8 &value) const
 
const EDataStreamoperator>> (quint16 &value) const
 
const EDataStreamoperator>> (quint32 &value) const
 
const EDataStreamoperator>> (quint64 &value) const
 
const EDataStreamoperator>> (float &value) const
 
const EDataStreamoperator>> (double &value) const
 
const EDataStreamoperator>> (QString &value) const
 
const EDataStreamoperator>> (QByteArray &value) const
 
EDataStreamoperator<< (qint8 value)
 
EDataStreamoperator<< (qint16 value)
 
EDataStreamoperator<< (qint32 value)
 
EDataStreamoperator<< (qint64 value)
 
EDataStreamoperator<< (quint8 value)
 
EDataStreamoperator<< (quint16 value)
 
EDataStreamoperator<< (quint32 value)
 
EDataStreamoperator<< (quint64 value)
 
EDataStreamoperator<< (float value)
 
EDataStreamoperator<< (double value)
 
EDataStreamoperator<< (const QString &value)
 
EDataStreamoperator<< (const QByteArray &value)
 
 EDataStream (Ace::DataObject *parent)
 

Detailed Description

This provides a C++ style stream for input and output of a data object. This also provides endian compatibility for cross platform loading. All data written by this data stream is in beg endian and all reading is switched back to little endian if the local machine is little endian. If the local machine is big endian then no switching of bits is done. Therefore means data object files are always big endian, also called network endian. This class handles all read operations from the data object as constant to keep in line with the constant paradigm used in data objects and ACE in general.

Constructor & Destructor Documentation

◆ EDataStream()

EDataStream::EDataStream ( Ace::DataObject parent)
explicit

This constructs a new data stream attached to the given data object where streamed data will be written to and read from. The given data object becomes this data stream's parent.

Parameters
parentPointer to the data object this data stream is attached to.

Member Function Documentation

◆ operator<<() [1/12]

EDataStream & EDataStream::operator<< ( qint8  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [2/12]

EDataStream & EDataStream::operator<< ( qint16  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [3/12]

EDataStream & EDataStream::operator<< ( qint32  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [4/12]

EDataStream & EDataStream::operator<< ( qint64  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [5/12]

EDataStream & EDataStream::operator<< ( quint8  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [6/12]

EDataStream & EDataStream::operator<< ( quint16  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [7/12]

EDataStream & EDataStream::operator<< ( quint32  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [8/12]

EDataStream & EDataStream::operator<< ( quint64  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [9/12]

EDataStream & EDataStream::operator<< ( float  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [10/12]

EDataStream & EDataStream::operator<< ( double  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [11/12]

EDataStream & EDataStream::operator<< ( const QString &  value)

Writes out the given value to this data stream.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator<<() [12/12]

EDataStream & EDataStream::operator<< ( const QByteArray &  value)

Writes out the given value to this data stream. The given byte array should not have any endian sensitive data stored within it because this does not handle it at all.

Parameters
valueThe value that is written to this data stream.
Returns
Reference to this data stream.

◆ operator>>() [1/12]

const EDataStream & EDataStream::operator>> ( qint8 &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [2/12]

const EDataStream & EDataStream::operator>> ( qint16 &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [3/12]

const EDataStream & EDataStream::operator>> ( qint32 &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [4/12]

const EDataStream & EDataStream::operator>> ( qint64 &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [5/12]

const EDataStream & EDataStream::operator>> ( quint8 &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [6/12]

const EDataStream & EDataStream::operator>> ( quint16 &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [7/12]

const EDataStream & EDataStream::operator>> ( quint32 &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [8/12]

const EDataStream & EDataStream::operator>> ( quint64 &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [9/12]

const EDataStream & EDataStream::operator>> ( float &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [10/12]

const EDataStream & EDataStream::operator>> ( double &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [11/12]

const EDataStream & EDataStream::operator>> ( QString &  value) const

Reads in data from this data stream setting the given value to the data read in.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

◆ operator>>() [12/12]

const EDataStream & EDataStream::operator>> ( QByteArray &  value) const

Reads in data from this data stream setting the given value to the data read in. The given byte array should not have any endian sensitive data stored within it because this does not handle it at all.

Parameters
valueReference to value that is set to the value read in from this data stream.
Returns
Read only reference to this data stream.

The documentation for this class was generated from the following files: