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