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


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