18 #include "qgis_core.h"    45     mutable unsigned char *mP;
    46     unsigned char *mStart;
    49     void verifyBound( 
int size ) 
const;
    51     template<
typename T> 
void read( T &v )
 const    53       verifyBound( 
sizeof v );
    54       memcpy( &v, mP, 
sizeof v );
    58     template<
typename T> 
void write( T &v )
 const    60       verifyBound( 
sizeof v );
    61       memcpy( mP, &v, 
sizeof v );
    65     void write( 
const QByteArray &data )
 const    67       verifyBound( data.length() );
    68       memcpy( mP, data.constData(), data.length() );
   102     inline operator unsigned char *() 
const { 
return mP; } 
SIP_SKIP   131     mutable unsigned char *
mP;
   140     void verifyBound( 
int size ) 
const SIP_SKIP;
   146     template<
typename T> 
void read( T &v ) 
const SIP_SKIP
   148       verifyBound( 
sizeof v );
   149       memcpy( &v, mP, 
sizeof( v ) );
   177     inline void operator+=( 
int n ) { verifyBound( n ); mP += n; } SIP_SKIP
   180     inline operator const unsigned char *() 
const { 
return mP; } SIP_SKIP
   186     inline int remaining()
 const { 
return mEnd - mP; } SIP_SKIP
   189 #endif // QGSWKBPTR_H static void endian_swap(T &value)
Swap the endianness of the specified value. 
 
QgsWkbException(QString const &what)
 
int remaining() const 
remaining 
 
const QgsConstWkbPtr & operator>>(char &v) const 
 
const QgsConstWkbPtr & operator>>(double &v) const 
 
QgsWkbPtr & operator<<(const QByteArray &data)
Append data from a byte array. 
 
const QgsWkbPtr & operator>>(int &v) const 
 
QgsWkbPtr & operator<<(QgsWkbTypes::Type v)
Writes a WKB type value to the pointer. 
 
QDataStream & operator>>(QDataStream &in, QgsFeature &feature)
Reads a feature from stream in into feature. QGIS version compatibility is not guaranteed. 
 
const QgsWkbPtr & operator>>(float &r) const 
 
QgsWkbPtr & operator<<(unsigned int v)
Writes an unsigned int to the pointer. 
 
QgsWkbPtr & operator<<(int v)
Writes an int to the pointer. 
 
const QgsWkbPtr & operator>>(QgsWkbTypes::Type &v) const 
 
int writtenSize() const 
writtenSize 
 
const QgsConstWkbPtr & operator>>(unsigned int &v) const 
 
Type
The WKB type describes the number of dimensions a geometry has. 
 
QgsWkbTypes::Type mWkbType
 
const QgsWkbPtr & operator>>(double &v) const 
 
const QgsWkbPtr & operator>>(char &v) const 
 
Custom exception class for Wkb related exceptions. 
 
QgsWkbPtr & operator<<(float r)
Writes a float to the pointer. 
 
const QgsConstWkbPtr & operator>>(int &v) const 
 
QgsWkbPtr & operator<<(char v)
Writes a char to the pointer. 
 
int remaining() const 
remaining 
 
const QgsWkbPtr & operator>>(unsigned int &v) const 
 
const QgsConstWkbPtr & operator>>(float &r) const 
 
Defines a QGIS exception class. 
 
QgsWkbPtr & operator<<(double v)
Writes a double to the pointer. 
 
void read(T &v) const 
Read a value.