Concrete data channel class for SQL type "float" (8 byte words). More...
#include <DataChannel.hxx>
Public Member Functions | |
void | input (TableData< DataType > &data, int colNo, ByteArray &bytes) |
Channel "float" data from byte array to data table. | |
void | output (TableData< DataType > &data, int colNo, ByteArray &bytes) |
Channel data from the table into "float" words in the byte array. | |
void | output (DataType &data, ByteArray &bytes) |
Channel data from the table into "float" words in the byte array. | |
int | getWordSize () |
Return "float" word size. | |
virtual | ~DataChannel_SQL_float () |
Private Attributes | |
union { | |
char bytes [wordSize] | |
double x | |
} | word |
Static Private Attributes | |
static const int | wordSize = 8 |
Concrete data channel class for SQL type "float" (8 byte words).
virtual DataChannel_SQL_float< DataType >::~DataChannel_SQL_float | ( | ) | [inline, virtual] |
int DataChannel_SQL_float< DataType >::getWordSize | ( | ) | [inline, virtual] |
Return "float" word size.
Implements DataChannel< DataType >.
References DataChannel_SQL_float< DataType >::wordSize.
void DataChannel_SQL_float< DataType >::input | ( | TableData< DataType > & | data, | |
int | colNo, | |||
ByteArray & | bytes | |||
) | [inline, virtual] |
Channel "float" data from byte array to data table.
Implements DataChannel< DataType >.
References TableData< DataType >::assign(), ByteArray::getNextWord(), ByteArray::getNumRecords(), DataChannel_SQL_float< DataType >::word, and DataChannel_SQL_float< DataType >::wordSize.
void DataChannel_SQL_float< DataType >::output | ( | DataType & | data, | |
ByteArray & | bytes | |||
) | [inline, virtual] |
Channel data from the table into "float" words in the byte array.
Implements DataChannel< DataType >.
References ByteArray::putNextWord(), DataChannel_SQL_float< DataType >::word, and DataChannel_SQL_float< DataType >::wordSize.
void DataChannel_SQL_float< DataType >::output | ( | TableData< DataType > & | data, | |
int | colNo, | |||
ByteArray & | bytes | |||
) | [inline, virtual] |
Channel data from the table into "float" words in the byte array.
Implements DataChannel< DataType >.
References ByteArray::getNumRecords(), ByteArray::putNextWord(), TableData< DataType >::value(), DataChannel_SQL_float< DataType >::word, and DataChannel_SQL_float< DataType >::wordSize.
char DataChannel_SQL_float< DataType >::bytes[wordSize] |
union { ... } DataChannel_SQL_float< DataType >::word [private] |
const int DataChannel_SQL_float< DataType >::wordSize = 8 [static, private] |
double DataChannel_SQL_float< DataType >::x |