Implements method to calculate the frame ID "directly" from a FITS file. More...
#include <FrameID.hxx>
Public Member Functions | |
DirectFrameID (const FitsFile &aFile) | |
~DirectFrameID () | |
Destructor. | |
void | setSource (IntMap &tbls, IntMap &cols, StringMap units) |
There are no source columns. | |
void | setTarget (IntMap &cols, StringMap units) |
Target is the column. | |
void | doit (TableData< DataType > &data, int row1, int row2) |
void | doit2 (TableData< DataType > &inpData, TableData< DataType > &data, int row1, int row2) |
Private Attributes | |
int | colNo |
std::string | mFrameID |
Implements method to calculate the frame ID "directly" from a FITS file.
DirectFrameID< DataType >::DirectFrameID | ( | const FitsFile & | aFile | ) | [inline] |
Constructor takes a FitsFile object and calculates the frame ID from it
References DataOps::makeFrameID(), and DirectFrameID< DataType >::mFrameID.
DirectFrameID< DataType >::~DirectFrameID | ( | ) | [inline] |
Destructor.
void DirectFrameID< DataType >::doit | ( | TableData< DataType > & | data, | |
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Fill up the column with the frame ID as set up in the constructor
Implements DataMethod< DataType >.
References TableData< DataType >::assign(), DirectFrameID< DataType >::colNo, and DirectFrameID< DataType >::mFrameID.
void DirectFrameID< DataType >::doit2 | ( | TableData< DataType > & | inpData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Implements DataMethod< DataType >.
void DirectFrameID< DataType >::setSource | ( | IntMap & | tbls, | |
IntMap & | cols, | |||
StringMap | units | |||
) | [inline, virtual] |
There are no source columns.
Implements DataMethod< DataType >.
void DirectFrameID< DataType >::setTarget | ( | IntMap & | cols, | |
StringMap | units | |||
) | [inline, virtual] |
Target is the column.
Implements DataMethod< DataType >.
References DirectFrameID< DataType >::colNo.
int DirectFrameID< DataType >::colNo [private] |
Referenced by DirectFrameID< DataType >::doit(), and DirectFrameID< DataType >::setTarget().
std::string DirectFrameID< DataType >::mFrameID [private] |
Referenced by DirectFrameID< DataType >::DirectFrameID(), and DirectFrameID< DataType >::doit().