Abstract base class for converting binary data to real C data types. More...
#include <BinaryDatum.h>


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. | |
Abstract base class for converting binary data to real C data types.
Definition at line 13 of file BinaryDatum.h.
| BinaryDatum::BinaryDatum | ( | unsigned | aBufIndex = 0 |
) | [inline] |
Constructor just sets the buffer read position for this datum.
| 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.
| virtual unsigned long long BinaryDatum::extractBigIntFrom | ( | char * | aBufferAry | ) | const [pure virtual] |
Read binary datum at current index and return a big int representation
| aBufferAry | The buffer array of binary data to be read |
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
| aBufferAry | The buffer array of binary data to be read |
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.
unsigned BinaryDatum::mBufIndex [protected] |
Offset in buffer array where this datum exists.
Definition at line 42 of file BinaryDatum.h.
Referenced by SqlTinyInt::extractBigIntFrom(), SqlSmallInt::extractBigIntFrom(), SqlInt::extractBigIntFrom(), SqlBigInt::extractBigIntFrom(), SqlReal::extractBigIntFrom(), SqlFloat::extractBigIntFrom(), SqlTinyInt::extractDoubleFrom(), SqlSmallInt::extractDoubleFrom(), SqlInt::extractDoubleFrom(), SqlBigInt::extractDoubleFrom(), SqlReal::extractDoubleFrom(), and SqlFloat::extractDoubleFrom().
1.6.3