DataChannel_SQL_float< DataType > Class Template Reference

Concrete data channel class for SQL type "float" (8 byte words). More...

#include <DataChannel.hxx>

Inheritance diagram for DataChannel_SQL_float< DataType >:
Inheritance graph
[legend]
Collaboration diagram for DataChannel_SQL_float< DataType >:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

template<typename DataType>
class DataChannel_SQL_float< DataType >

Concrete data channel class for SQL type "float" (8 byte words).


Constructor & Destructor Documentation

template<typename DataType >
virtual DataChannel_SQL_float< DataType >::~DataChannel_SQL_float (  )  [inline, virtual]

Member Function Documentation

template<typename DataType >
int DataChannel_SQL_float< DataType >::getWordSize (  )  [inline, virtual]

Return "float" word size.

Implements DataChannel< DataType >.

References DataChannel_SQL_float< DataType >::wordSize.

template<typename DataType >
void DataChannel_SQL_float< DataType >::input ( TableData< DataType > &  data,
int  colNo,
ByteArray bytes 
) [inline, virtual]
template<typename DataType >
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.

template<typename DataType >
void DataChannel_SQL_float< DataType >::output ( TableData< DataType > &  data,
int  colNo,
ByteArray bytes 
) [inline, virtual]

Member Data Documentation

template<typename DataType >
char DataChannel_SQL_float< DataType >::bytes[wordSize]
union { ... } DataChannel_SQL_float< DataType >::word [private]
template<typename DataType >
const int DataChannel_SQL_float< DataType >::wordSize = 8 [static, private]
template<typename DataType >
double DataChannel_SQL_float< DataType >::x

The documentation for this class was generated from the following file:
Generated on Mon Oct 4 10:39:24 2010 for WfcamSrc by  doxygen 1.6.3