BinaryDatum Class Reference

Abstract base class for converting binary data to real C data types. More...

#include <BinaryDatum.h>

Inheritance diagram for BinaryDatum:
Inheritance graph
[legend]
Collaboration diagram for BinaryDatum:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BinaryDatum (unsigned aBufIndex=0)
 Constructor just sets the buffer read position for this datum.
virtual ~BinaryDatum ()
 Empty virtual destructor to keep compiler happy.
virtual double extractDoubleFrom (char *aBufferAry) const =0
virtual unsigned long long extractBigIntFrom (char *aBufferAry) const =0
virtual unsigned getNumBits () const =0
 Returns the size of the binary datum in bits.

Protected Attributes

unsigned mBufIndex
 Offset in buffer array where this datum exists.

Detailed Description

Abstract base class for converting binary data to real C data types.

Definition at line 13 of file BinaryDatum.h.


Constructor & Destructor Documentation

BinaryDatum::BinaryDatum ( unsigned  aBufIndex = 0  )  [inline]

Constructor just sets the buffer read position for this datum.

Parameters:
aBufIndex Offset in buffer array where this datum exists

Definition at line 19 of file BinaryDatum.h.

virtual BinaryDatum::~BinaryDatum (  )  [inline, virtual]

Empty virtual destructor to keep compiler happy.

Definition at line 23 of file BinaryDatum.h.


Member Function Documentation

virtual unsigned long long BinaryDatum::extractBigIntFrom ( char *  aBufferAry  )  const [pure virtual]

Read binary datum at current index and return a big int representation

Parameters:
aBufferAry The buffer array of binary data to be read
Returns:
The value of the binary data represented as a unsigned long long

Implemented in SqlFloat, SqlReal, SqlBigInt, SqlInt, SqlSmallInt, and SqlTinyInt.

Referenced by WSAReader::read().

virtual double BinaryDatum::extractDoubleFrom ( char *  aBufferAry  )  const [pure virtual]

Read binary datum at current index and return a double representation

Parameters:
aBufferAry The buffer array of binary data to be read
Returns:
The value of the binary data represented as a double

Implemented in SqlFloat, SqlReal, SqlBigInt, SqlInt, SqlSmallInt, and SqlTinyInt.

Referenced by WSAReader::read().

virtual unsigned BinaryDatum::getNumBits (  )  const [pure virtual]

Returns the size of the binary datum in bits.

Implemented in SqlFloat, SqlReal, SqlBigInt, SqlInt, SqlSmallInt, and SqlTinyInt.


Member Data Documentation

unsigned BinaryDatum::mBufIndex [protected]

The documentation for this class was generated from the following file:
Generated on Mon Oct 4 10:40:28 2010 for Matching.kdevelop by  doxygen 1.6.3