Implementation of method to determine the project for the VSA. More...
#include <VSAProject.hxx>
Public Member Functions | |
VSAProject (const FitsFile &aFile) | |
Constructor requires user input. | |
virtual | ~VSAProject () |
Destructor. | |
void | setSource (IntMap &tbls, IntMap &aCols, StringMap aUnits) |
Source is data column with the project name. | |
void | setTarget (IntMap &aCols, StringMap aUnits) |
Target is data column with the project ID. | |
void | doit (TableData< DataType > &aData, int aFirstRow, int aLastRow) |
Fill up data column for project ID. | |
void | doit2 (TableData< DataType > &rawData, TableData< DataType > &data, int row1, int row2) |
Private Attributes | |
std::string | mfileName |
int | mProjectColNum |
ProgrammeTable | mProgTable |
Programme ID<->Name translation table. |
Implementation of method to determine the project for the VSA.
VSAProject< DataType >::VSAProject | ( | const FitsFile & | aFile | ) | [inline] |
Constructor requires user input.
References FitsFile::getFileName(), and VSAProject< DataType >::mfileName.
virtual VSAProject< DataType >::~VSAProject | ( | ) | [inline, virtual] |
Destructor.
void VSAProject< DataType >::doit | ( | TableData< DataType > & | aData, | |
int | aFirstRow, | |||
int | aLastRow | |||
) | [inline, virtual] |
Fill up data column for project ID.
Implements DataMethod< DataType >.
References TableData< DataType >::assign(), ProgrammeTable::getProgrammeId(), VSAProject< DataType >::mfileName, VSAProject< DataType >::mProgTable, and VSAProject< DataType >::mProjectColNum.
void VSAProject< DataType >::doit2 | ( | TableData< DataType > & | rawData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Implements DataMethod< DataType >.
void VSAProject< DataType >::setSource | ( | IntMap & | tbls, | |
IntMap & | aCols, | |||
StringMap | aUnits | |||
) | [inline, virtual] |
Source is data column with the project name.
Implements DataMethod< DataType >.
void VSAProject< DataType >::setTarget | ( | IntMap & | aCols, | |
StringMap | aUnits | |||
) | [inline, virtual] |
Target is data column with the project ID.
Implements DataMethod< DataType >.
References VSAProject< DataType >::mProjectColNum.
std::string VSAProject< DataType >::mfileName [private] |
Referenced by VSAProject< DataType >::doit(), and VSAProject< DataType >::VSAProject().
ProgrammeTable VSAProject< DataType >::mProgTable [private] |
Programme ID<->Name translation table.
Referenced by VSAProject< DataType >::doit().
int VSAProject< DataType >::mProjectColNum [private] |
Referenced by VSAProject< DataType >::doit(), and VSAProject< DataType >::setTarget().