DataMethod to convert a 'Done' string to a tinyint representing a boolean. More...
#include <DoneToBool.hxx>
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 |
DataMethod to convert a 'Done' string to a tinyint representing a boolean.
DoneToBool< DataType >::DoneToBool | ( | ) | [inline] |
Constructor just sets the method name.
virtual DoneToBool< DataType >::~DoneToBool | ( | ) | [inline, virtual] |
Destructor.
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.
void DoneToBool< DataType >::doit2 | ( | TableData< DataType > & | rawData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Implements DataMethod< 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.
void DoneToBool< DataType >::setTarget | ( | IntMap & | aColMap, | |
StringMap | aUnits | |||
) | [inline, virtual] |
Sets the target column number.
Implements DataMethod< DataType >.
References DoneToBool< DataType >::mTargetCol.
int DoneToBool< DataType >::mSourceCol [private] |
Referenced by DoneToBool< DataType >::doit(), and DoneToBool< DataType >::setSource().
int DoneToBool< DataType >::mTargetCol [private] |
Referenced by DoneToBool< DataType >::doit(), and DoneToBool< DataType >::setTarget().