Concrete data channel class for SQL type "int" (2 byte words). More...
#include <DataChannel.hxx>


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