casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
casa::ReaderInterface Class Referenceabstract

#include <ReaderInterface.h>

Inheritance diagram for casa::ReaderInterface:
casa::NonCopyable< ReaderInterface > casa::NRO2MSReader casa::Scantable2MSReader

Public Types

typedef NullOptionalTables
< ReaderInterface
OptionalTables
 

Public Member Functions

 ReaderInterface (std::string const &name)
 
virtual ~ReaderInterface ()
 
std::string const & getName () const
 
virtual casacore::String getDataUnit () const
 
virtual casacore::Bool isFloatData () const
 
virtual casacore::MDirection::Types getDirectionFrame () const
 
void initialize ()
 
void finalize ()
 
virtual size_t getNumberOfRows ()=0
 get number of rows for MAIN table More...
 
virtual casacore::Bool getObservationRow (sdfiller::ObservationRecord &record)=0
 to get OBSERVATION table The method should return true if row entry is available. More...
 
virtual casacore::Bool getAntennaRow (sdfiller::AntennaRecord &record)=0
 to get ANTENNA table The method should return true if row entry is available. More...
 
virtual casacore::Bool getProcessorRow (sdfiller::ProcessorRecord &record)=0
 to get PROCESSOR table The method should return true if row entry is available. More...
 
virtual casacore::Bool getSourceRow (sdfiller::SourceRecord &row)=0
 to get SOURCE table The method should return true if row entry is available. More...
 
virtual casacore::Bool getFieldRow (sdfiller::FieldRecord &row)=0
 to get FIELD table The method should return true if row entry is available. More...
 
virtual casacore::Bool getSpectralWindowRow (sdfiller::SpectralWindowRecord &row)=0
 to get SPECTRAL WINDOW table The method should return true if row entry is available. More...
 
virtual casacore::Bool getData (size_t irow, sdfiller::DataRecord &record)=0
 for DataAccumulator More...
 

Protected Member Functions

virtual void initializeSpecific ()=0
 
virtual void finalizeSpecific ()=0
 

Protected Attributes

std::string const name_
 

Private Member Functions

void initializeCommon ()
 common initialization/finalization actions More...
 
void finalizeCommon ()
 
- Private Member Functions inherited from casa::NonCopyable< ReaderInterface >
 NonCopyable ()
 
 ~NonCopyable ()
 

Detailed Description

Definition at line 51 of file ReaderInterface.h.

Member Typedef Documentation

Definition at line 53 of file ReaderInterface.h.

Constructor & Destructor Documentation

casa::ReaderInterface::ReaderInterface ( std::string const &  name)
inline

Definition at line 55 of file ReaderInterface.h.

virtual casa::ReaderInterface::~ReaderInterface ( )
inlinevirtual

Definition at line 59 of file ReaderInterface.h.

Member Function Documentation

void casa::ReaderInterface::finalize ( )
inline

Definition at line 83 of file ReaderInterface.h.

References finalizeCommon(), and finalizeSpecific().

void casa::ReaderInterface::finalizeCommon ( )
inlineprivate

Definition at line 134 of file ReaderInterface.h.

Referenced by finalize().

virtual void casa::ReaderInterface::finalizeSpecific ( )
protectedpure virtual

Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.

Referenced by finalize().

virtual casacore::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::Scantable2MSReader, and casa::NRO2MSReader.

virtual casacore::Bool casa::ReaderInterface::getData ( size_t  irow,
sdfiller::DataRecord record 
)
pure virtual

for DataAccumulator

Implemented in casa::Scantable2MSReader, and casa::NRO2MSReader.

virtual casacore::String casa::ReaderInterface::getDataUnit ( ) const
inlinevirtual

Reimplemented in casa::Scantable2MSReader, and casa::NRO2MSReader.

Definition at line 66 of file ReaderInterface.h.

virtual casacore::MDirection::Types casa::ReaderInterface::getDirectionFrame ( ) const
inlinevirtual

Reimplemented in casa::NRO2MSReader.

Definition at line 74 of file ReaderInterface.h.

References casacore::MDirection::J2000.

virtual casacore::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::Scantable2MSReader, and casa::NRO2MSReader.

std::string const& casa::ReaderInterface::getName ( ) const
inline

Definition at line 62 of file ReaderInterface.h.

References name_.

virtual size_t casa::ReaderInterface::getNumberOfRows ( )
pure virtual

get number of rows for MAIN table

Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.

virtual casacore::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::Scantable2MSReader, and casa::NRO2MSReader.

virtual casacore::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::Scantable2MSReader, and casa::NRO2MSReader.

virtual casacore::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::Scantable2MSReader, and casa::NRO2MSReader.

virtual casacore::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::Scantable2MSReader, and casa::NRO2MSReader.

void casa::ReaderInterface::initialize ( )
inline

Definition at line 78 of file ReaderInterface.h.

References initializeCommon(), and initializeSpecific().

void casa::ReaderInterface::initializeCommon ( )
inlineprivate

common initialization/finalization actions

Definition at line 132 of file ReaderInterface.h.

Referenced by initialize().

virtual void casa::ReaderInterface::initializeSpecific ( )
protectedpure virtual

Implemented in casa::NRO2MSReader, and casa::Scantable2MSReader.

Referenced by initialize().

virtual casacore::Bool casa::ReaderInterface::isFloatData ( ) const
inlinevirtual

Reimplemented in casa::NRO2MSReader, and casa::Scantable2MSReader.

Definition at line 70 of file ReaderInterface.h.

Member Data Documentation

std::string const casa::ReaderInterface::name_
protected

Definition at line 128 of file ReaderInterface.h.

Referenced by getName().


The documentation for this class was generated from the following file: