#include <DataBuilder.hxx>
Public Member Functions | |
DataBuilder () | |
Constructor. | |
virtual | ~DataBuilder () |
Virtual destructor. | |
const std::string & | getName () const |
void | logInfo (const std::string &aTableName) |
Helper function to information on the instantiated Databuilder. | |
virtual TableData< DataType > * | build (FitsFile &fpix, FitsFile &fcat, int fileNo)=0 |
Protected Attributes | |
std::string | builderName |
Abstract base class for data builder class. The derived classes of this base class represent the various types of tables in the database. Each derived class provides the necessary specialised implementation particular to its corresponding table type. The design of this class was inspired by the "Builder" design pattern
DataBuilder< DataType >::DataBuilder | ( | ) | [inline] |
Constructor.
References DataBuilder< DataType >::builderName.
virtual DataBuilder< DataType >::~DataBuilder | ( | ) | [inline, virtual] |
Virtual destructor.
virtual TableData<DataType>* DataBuilder< DataType >::build | ( | FitsFile & | fpix, | |
FitsFile & | fcat, | |||
int | fileNo | |||
) | [pure virtual] |
Interface definition for the build function. This will return an object corresponding to an instance of the TableData class. The object will be filled with data extracted from the given FitsFile objects. An additional input is the file number in the input list. Note that this function as defined in this class doesn't do anything. The actual implementation details appropriate for a particular type of table are given in the derived sub-classes.
Implemented in Catalog< DataType >, Extension< DataType >, Primary< DataType >, and Provenance< DataType >.
Referenced by extractMetadata(), and extractSources().
const std::string& DataBuilder< DataType >::getName | ( | ) | const [inline] |
References DataBuilder< DataType >::builderName.
void DataBuilder< DataType >::logInfo | ( | const std::string & | aTableName | ) | [inline] |
Helper function to information on the instantiated Databuilder.
References Logger::addMessage(), and DataBuilder< DataType >::builderName.
Referenced by extractMetadata(), and extractSources().
std::string DataBuilder< DataType >::builderName [protected] |