#include <FilterID.hxx>
Public Member Functions | |
FilterIDByFits (const FitsFile &aFile) | |
Constructor sets things up from the given FitsFile object. | |
virtual | ~FilterIDByFits () |
Destructor. | |
void | setSource (IntMap &tbls, IntMap &cols, StringMap units) |
No input columns. | |
void | setTarget (IntMap &cols, StringMap units) |
Target is column with the filter ID. | |
void | doit (TableData< DataType > &data, int row1, int row2) |
Fill up the filter ID column. | |
void | doit2 (TableData< DataType > &rawData, TableData< DataType > &data, int row1, int row2) |
Private Attributes | |
int | fidColno |
int | mFilterID |
Implements method to fill up the data with the filter ID as determined by information encoded in a given FITS file
FilterIDByFits< DataType >::FilterIDByFits | ( | const FitsFile & | aFile | ) | [inline] |
Constructor sets things up from the given FitsFile object.
References FitsFile::FILTER, ExpectNames::filterName, DataOps::getFilterId(), FitsFile::isTile(), FilterIDByFits< DataType >::mFilterID, FitsFile::movabsHdu(), and FitsFile::readKey().
virtual FilterIDByFits< DataType >::~FilterIDByFits | ( | ) | [inline, virtual] |
Destructor.
void FilterIDByFits< DataType >::doit | ( | TableData< DataType > & | data, | |
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Fill up the filter ID column.
Implements DataMethod< DataType >.
References TableData< DataType >::assign(), FilterIDByFits< DataType >::fidColno, and FilterIDByFits< DataType >::mFilterID.
void FilterIDByFits< DataType >::doit2 | ( | TableData< DataType > & | rawData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Implements DataMethod< DataType >.
void FilterIDByFits< DataType >::setSource | ( | IntMap & | tbls, | |
IntMap & | cols, | |||
StringMap | units | |||
) | [inline, virtual] |
No input columns.
Implements DataMethod< DataType >.
void FilterIDByFits< DataType >::setTarget | ( | IntMap & | cols, | |
StringMap | units | |||
) | [inline, virtual] |
Target is column with the filter ID.
Implements DataMethod< DataType >.
References FilterIDByFits< DataType >::fidColno.
int FilterIDByFits< DataType >::fidColno [private] |
Referenced by FilterIDByFits< DataType >::doit(), and FilterIDByFits< DataType >::setTarget().
int FilterIDByFits< DataType >::mFilterID [private] |
Referenced by FilterIDByFits< DataType >::doit(), and FilterIDByFits< DataType >::FilterIDByFits().