casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::RFReader Class Reference

Abstract superclass for any class that reads a format that produces Regions from a file. More...

#include <RFReaderWriter.h>

Inheritance diagram for casa::RFReader:
casa::RFReaderWriter casa::AipsIOReaderWriter

List of all members.

Public Member Functions

 RFReader ()
 Constructor.
virtual ~RFReader ()
 Destructor.
virtual Recordoptions ()
 Provides access to the plotting options that were found in the region file.
virtual bool read (Record &region)=0
 reported, false otherwise.
virtual bool readFile (const String &file, Record &region)
 Calls setFile() then read().

Detailed Description

Abstract superclass for any class that reads a format that produces Regions from a file.

Intended use:

Public interface

Synopsis

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.

Example

Definition at line 221 of file RFReaderWriter.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 225 of file RFReaderWriter.h.

virtual casa::RFReader::~RFReader ( ) [inline, virtual]

Destructor.

Definition at line 228 of file RFReaderWriter.h.


Member Function Documentation

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]

Calls setFile() then read().

Definition at line 243 of file RFReaderWriter.h.

References read(), and casa::RFReaderWriter::setFile().


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