50 #error qdatastream.h must be included before any header file that defines Status
62 template <typename T> class
QList;
64 template <typename T> class
QVector;
65 template <typename T> class
QSet;
66 template <class
Key, class T> class
QHash;
67 template <class Key, class T> class
QMap;
69 #if !defined(QT_NO_DATASTREAM) || defined(QT_BOOTSTRAPPED)
70 class QDataStreamPrivate;
90 #if QT_VERSION >= 0x040900
91 #error Add the datastream version for this Qt version
97 BigEndian = QSysInfo::BigEndian,
98 LittleEndian = QSysInfo::LittleEndian
118 QDataStream(QByteArray *, QIODevice::OpenMode flags);
122 QIODevice *device()
const;
123 void setDevice(QIODevice *);
128 inline QT3_SUPPORT
bool eof()
const {
return atEnd(); }
132 void setStatus(
Status status);
135 FloatingPointPrecision floatingPointPrecision()
const;
136 void setFloatingPointPrecision(FloatingPointPrecision precision);
138 ByteOrder byteOrder()
const;
139 void setByteOrder(ByteOrder);
142 void setVersion(
int);
172 int readRawData(
char *,
int len);
175 int writeRawData(
const char *,
int len);
177 int skipRawData(
int len);
181 { readRawData(str, static_cast<int>(len));
return *
this; }
182 inline QT3_SUPPORT
QDataStream &writeRawBytes(
const char *str, uint len)
183 { writeRawData(str, static_cast<int>(len));
return *
this; }
184 inline QT3_SUPPORT
bool isPrintableData()
const {
return false; }
185 inline QT3_SUPPORT
void setPrintableData(
bool) {}
210 {
return byteorder; }
219 {
return *
this >>
reinterpret_cast<qint8&
>(i); }
222 {
return *
this >>
reinterpret_cast<qint16&
>(i); }
225 {
return *
this >>
reinterpret_cast<qint32&
>(i); }
228 {
return *
this >>
reinterpret_cast<qint64&
>(i); }
231 {
return *
this <<
qint8(i); }
234 {
return *
this <<
qint16(i); }
237 {
return *
this <<
qint32(i); }
240 {
return *
this <<
qint64(i); }
242 template <
typename T>
260 template <
typename T>
264 for (
int i = 0; i < l.size(); ++i)
269 template <
typename T>
286 template <
typename T>
291 for(; it != l.constEnd(); ++it)
320 template <
typename T>
336 template <
typename T>
341 while (i != set.constEnd()) {
348 template <
class Key,
class T>
375 template <
class Key,
class T>
376 Q_OUTOFLINE_TEMPLATE
QDataStream &operator<<(QDataStream &out, const QHash<Key, T>& hash)
381 while (it != begin) {
383 out << it.
key() << it.value();
388 template <
class Key,
class T>
391 template <
class aKey,
class aT>
421 template <
class Key,
class T>
422 Q_OUTOFLINE_TEMPLATE
QDataStream &operator<<(QDataStream &out, const QMap<Key, T> &
map)
427 while (it != begin) {
429 out << it.key() << it.value();
434 #endif // QT_NO_DATASTREAM
440 #endif // QDATASTREAM_H
QDataStream & operator>>(QDataStream &s, QList< T > &l)
QFuture< void > map(Sequence &sequence, MapFunctor map)
typedef Status(APIENTRYP PFNGLXGETTRANSPARENTINDEXSUNPROC)(Display *dpy
unsigned long long quint64
#define QT_BEGIN_NAMESPACE
iterator insertMulti(const Key &key, const T &value)
QT_BEGIN_HEADER QT_BEGIN_NAMESPACE typedef signed char qint8
void setStatus(Status status)
GLsizei const GLfloat * value
QDataStream & operator<<(QDataStream &s, const QList< T > &l)
void setInsertInOrder(bool ordered)
QDataStream & operator>>(qint8 &i)
QDataStream & operator<<(qint8 i)
iterator insertMulti(const Key &key, const T &value)
ByteOrder byteOrder() const