#include <ProgrammeID.hxx>
Public Member Functions | |
ProgrammeID () | |
Constructor sets the method name. | |
virtual | ~ProgrammeID () |
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 | |
int | mProgNameColNum |
Source column number for programme name. | |
int | mProgIdColNum |
Target column number for programme ID. | |
ProgrammeTable | mProgTable |
Programme ID<->Name translation table. |
Implementation of method to determine the UKIDSS programme ID from the UKIDSS project name that is already in the data table.
ProgrammeID< DataType >::ProgrammeID | ( | ) | [inline] |
Constructor sets the method name.
virtual ProgrammeID< DataType >::~ProgrammeID | ( | ) | [inline, virtual] |
Destructor.
void ProgrammeID< 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(), ProgrammeID< DataType >::mProgIdColNum, ProgrammeID< DataType >::mProgNameColNum, ProgrammeID< DataType >::mProgTable, and TableData< DataType >::value().
void ProgrammeID< DataType >::doit2 | ( | TableData< DataType > & | rawData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Implements DataMethod< DataType >.
void ProgrammeID< DataType >::setSource | ( | IntMap & | tbls, | |
IntMap & | aCols, | |||
StringMap | aUnits | |||
) | [inline, virtual] |
Source is data column with the project name.
Implements DataMethod< DataType >.
References ProgrammeID< DataType >::mProgNameColNum.
void ProgrammeID< DataType >::setTarget | ( | IntMap & | aCols, | |
StringMap | aUnits | |||
) | [inline, virtual] |
Target is data column with the project ID.
Implements DataMethod< DataType >.
References ProgrammeID< DataType >::mProgIdColNum.
int ProgrammeID< DataType >::mProgIdColNum [private] |
Target column number for programme ID.
Referenced by ProgrammeID< DataType >::doit(), and ProgrammeID< DataType >::setTarget().
int ProgrammeID< DataType >::mProgNameColNum [private] |
Source column number for programme name.
Referenced by ProgrammeID< DataType >::doit(), and ProgrammeID< DataType >::setSource().
ProgrammeTable ProgrammeID< DataType >::mProgTable [private] |
Programme ID<->Name translation table.
Referenced by ProgrammeID< DataType >::doit().