DoneToBool< DataType > Class Template Reference

DataMethod to convert a 'Done' string to a tinyint representing a boolean. More...

#include <DoneToBool.hxx>

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

List of all members.

Public Member Functions

 DoneToBool ()
 Constructor just sets the method name.
virtual ~DoneToBool ()
 Destructor.
void setSource (IntMap &tbls, IntMap &aColMap, StringMap aUnits)
 Sets the source column number.
void setTarget (IntMap &aColMap, StringMap aUnits)
 Sets the target column number.
void doit (TableData< DataType > &aData, int aFirstRow, int aLastRow)
void doit2 (TableData< DataType > &rawData, TableData< DataType > &data, int row1, int row2)

Private Attributes

int mSourceCol
int mTargetCol

Detailed Description

template<typename DataType>
class DoneToBool< DataType >

DataMethod to convert a 'Done' string to a tinyint representing a boolean.


Constructor & Destructor Documentation

template<typename DataType >
DoneToBool< DataType >::DoneToBool (  )  [inline]

Constructor just sets the method name.

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

Destructor.


Member Function Documentation

template<typename DataType >
void DoneToBool< DataType >::doit ( TableData< DataType > &  aData,
int  aFirstRow,
int  aLastRow 
) [inline, virtual]

Fill column values with Yes (tinyint of 1) if FITS keyword value includes the word 'Done' otherwise No (tinyint of 0)

Implements DataMethod< DataType >.

References TableData< DataType >::assign(), DoneToBool< DataType >::mSourceCol, DoneToBool< DataType >::mTargetCol, BooleanTinyInt::No, TableData< DataType >::value(), and BooleanTinyInt::Yes.

template<typename DataType >
void DoneToBool< DataType >::doit2 ( TableData< DataType > &  rawData,
TableData< DataType > &  data,
int  row1,
int  row2 
) [inline, virtual]
template<typename DataType >
void DoneToBool< DataType >::setSource ( IntMap tbls,
IntMap aColMap,
StringMap  aUnits 
) [inline, virtual]

Sets the source column number.

Implements DataMethod< DataType >.

References DoneToBool< DataType >::mSourceCol.

template<typename DataType >
void DoneToBool< DataType >::setTarget ( IntMap aColMap,
StringMap  aUnits 
) [inline, virtual]

Sets the target column number.

Implements DataMethod< DataType >.

References DoneToBool< DataType >::mTargetCol.


Member Data Documentation

template<typename DataType >
int DoneToBool< DataType >::mSourceCol [private]
template<typename DataType >
int DoneToBool< DataType >::mTargetCol [private]

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