#include <ReaderInterface.h>
Public Member Functions | |
ReaderInterface (std::string const &name, bool const is_nro=false) | |
virtual | ~ReaderInterface () |
std::string const & | getName () const |
bool | isNROData () |
virtual int | getNROArraySize () |
virtual int | getNRONumBeam () |
virtual int | getNRONumPol () |
virtual int | getNRONumSpw () |
virtual Bool | isFloatData () const |
virtual MDirection::Types | getDirectionFrame () const |
void | initialize () |
void | finalize () |
virtual size_t | getNumberOfRows ()=0 |
get number of rows for MAIN table | |
virtual Bool | getObservationRow (sdfiller::ObservationRecord &record)=0 |
to get OBSERVATION table The method should return True if row entry is available. | |
virtual Bool | getAntennaRow (sdfiller::AntennaRecord &record)=0 |
to get ANTENNA table The method should return True if row entry is available. | |
virtual Bool | getProcessorRow (sdfiller::ProcessorRecord &record)=0 |
to get PROCESSOR table The method should return True if row entry is available. | |
virtual Bool | getSourceRow (sdfiller::SourceRecord &row)=0 |
to get SOURCE table The method should return True if row entry is available. | |
virtual Bool | getFieldRow (sdfiller::FieldRecord &row)=0 |
to get FIELD table The method should return True if row entry is available. | |
virtual Bool | getSpectralWindowRow (sdfiller::SpectralWindowRecord &row)=0 |
to get SPECTRAL WINDOW table The method should return True if row entry is available. | |
virtual Bool | getData (size_t irow, sdfiller::DataRecord &record)=0 |
for DataAccumulator | |
Protected Member Functions | |
virtual void | initializeSpecific ()=0 |
virtual void | finalizeSpecific ()=0 |
Protected Attributes | |
std::string const | name_ |
bool const | is_nro_ |
Private Member Functions | |
void | initializeCommon () |
common initialization/finalization actions | |
void | finalizeCommon () |
Definition at line 45 of file ReaderInterface.h.
casa::ReaderInterface::ReaderInterface | ( | std::string const & | name, | |
bool const | is_nro = false | |||
) | [inline] |
Definition at line 47 of file ReaderInterface.h.
virtual casa::ReaderInterface::~ReaderInterface | ( | ) | [inline, virtual] |
Definition at line 51 of file ReaderInterface.h.
void casa::ReaderInterface::finalize | ( | ) | [inline] |
Definition at line 88 of file ReaderInterface.h.
References finalizeCommon(), and finalizeSpecific().
void casa::ReaderInterface::finalizeCommon | ( | ) | [inline, private] |
Definition at line 140 of file ReaderInterface.h.
Referenced by finalize().
virtual void casa::ReaderInterface::finalizeSpecific | ( | ) | [protected, pure virtual] |
Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
Referenced by finalize().
virtual Bool casa::ReaderInterface::getAntennaRow | ( | sdfiller::AntennaRecord & | record | ) | [pure virtual] |
to get ANTENNA table The method should return True if row entry is available.
If it return False, row will be invalid so it should not be used.
Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
virtual Bool casa::ReaderInterface::getData | ( | size_t | irow, | |
sdfiller::DataRecord & | record | |||
) | [pure virtual] |
for DataAccumulator
Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
virtual MDirection::Types casa::ReaderInterface::getDirectionFrame | ( | ) | const [inline, virtual] |
Definition at line 79 of file ReaderInterface.h.
References casa::viewer::region::J2000.
virtual Bool casa::ReaderInterface::getFieldRow | ( | sdfiller::FieldRecord & | row | ) | [pure virtual] |
to get FIELD table The method should return True if row entry is available.
If it return False, row will be invalid so it should not be used.
Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
std::string const& casa::ReaderInterface::getName | ( | ) | const [inline] |
Definition at line 54 of file ReaderInterface.h.
References name_.
virtual int casa::ReaderInterface::getNROArraySize | ( | ) | [inline, virtual] |
Reimplemented in casa::NRO2MSReader.
Definition at line 62 of file ReaderInterface.h.
virtual int casa::ReaderInterface::getNRONumBeam | ( | ) | [inline, virtual] |
Reimplemented in casa::NRO2MSReader.
Definition at line 65 of file ReaderInterface.h.
virtual int casa::ReaderInterface::getNRONumPol | ( | ) | [inline, virtual] |
Reimplemented in casa::NRO2MSReader.
Definition at line 68 of file ReaderInterface.h.
virtual int casa::ReaderInterface::getNRONumSpw | ( | ) | [inline, virtual] |
Reimplemented in casa::NRO2MSReader.
Definition at line 71 of file ReaderInterface.h.
virtual size_t casa::ReaderInterface::getNumberOfRows | ( | ) | [pure virtual] |
get number of rows for MAIN table
Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
virtual Bool casa::ReaderInterface::getObservationRow | ( | sdfiller::ObservationRecord & | record | ) | [pure virtual] |
to get OBSERVATION table The method should return True if row entry is available.
If it return False, row will be invalid so it should not be used.
Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
virtual Bool casa::ReaderInterface::getProcessorRow | ( | sdfiller::ProcessorRecord & | record | ) | [pure virtual] |
to get PROCESSOR table The method should return True if row entry is available.
If it return False, row will be invalid so it should not be used.
Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
virtual Bool casa::ReaderInterface::getSourceRow | ( | sdfiller::SourceRecord & | row | ) | [pure virtual] |
to get SOURCE table The method should return True if row entry is available.
If it return False, row will be invalid so it should not be used.
Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
virtual Bool casa::ReaderInterface::getSpectralWindowRow | ( | sdfiller::SpectralWindowRecord & | row | ) | [pure virtual] |
to get SPECTRAL WINDOW table The method should return True if row entry is available.
If it return False, row will be invalid so it should not be used.
Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
void casa::ReaderInterface::initialize | ( | ) | [inline] |
Definition at line 83 of file ReaderInterface.h.
References initializeCommon(), and initializeSpecific().
void casa::ReaderInterface::initializeCommon | ( | ) | [inline, private] |
common initialization/finalization actions
Definition at line 138 of file ReaderInterface.h.
Referenced by initialize().
virtual void casa::ReaderInterface::initializeSpecific | ( | ) | [protected, pure virtual] |
Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
Referenced by initialize().
virtual Bool casa::ReaderInterface::isFloatData | ( | ) | const [inline, virtual] |
Reimplemented in casa::NRO2MSReader, and casa::Scantable2MSReader.
Definition at line 75 of file ReaderInterface.h.
References casacore::False.
bool casa::ReaderInterface::isNROData | ( | ) | [inline] |
Definition at line 58 of file ReaderInterface.h.
References is_nro_.
bool const casa::ReaderInterface::is_nro_ [protected] |
Definition at line 134 of file ReaderInterface.h.
Referenced by isNROData().
std::string const casa::ReaderInterface::name_ [protected] |
Definition at line 133 of file ReaderInterface.h.
Referenced by getName().