casa
$Rev:20696$
|
Abstract superclass for any class that reads a format that produces Regions from a file. More...
#include <RFReaderWriter.h>
Public Member Functions | |
RFReader () | |
Constructor. | |
virtual | ~RFReader () |
Destructor. | |
virtual Record * | options () |
Provides access to the plotting options that were found in the region file. | |
virtual bool | read (Record ®ion)=0 |
reported, false otherwise. | |
virtual bool | readFile (const String &file, Record ®ion) |
Calls setFile() then read(). |
Abstract superclass for any class that reads a format that produces Regions from a file.
Public interface
Provide a well defined set of operations for reading region files, regardless of the data format.
Note that some file formats allow for plotting options to be defined as well as the regions. These options are read and stored in a record of ... , the contents of this record is ill-defined (ie. there is no standard).
There may come a time where a standard is necessary.
Definition at line 221 of file RFReaderWriter.h.
casa::RFReader::RFReader | ( | ) | [inline] |
Constructor.
Definition at line 225 of file RFReaderWriter.h.
virtual casa::RFReader::~RFReader | ( | ) | [inline, virtual] |
Destructor.
Definition at line 228 of file RFReaderWriter.h.
virtual Record* casa::RFReader::options | ( | ) | [inline, virtual] |
Provides access to the plotting options that were found in the region file.
Definition at line 232 of file RFReaderWriter.h.
References casa::RFReaderWriter::options_p.
virtual bool casa::RFReader::read | ( | Record & | region | ) | [pure virtual] |
reported, false otherwise.
If false is returned, the details can be found using lastError(). Any valid Regions that were read from the file are placed in the given vector (which is cleared first).
Implemented in casa::AipsIOReaderWriter.
Referenced by readFile().
virtual bool casa::RFReader::readFile | ( | const String & | file, |
Record & | region | ||
) | [inline, virtual] |
Definition at line 243 of file RFReaderWriter.h.
References read(), and casa::RFReaderWriter::setFile().