casa
$Rev:20696$
|
Abstract superclass for any class that reads a format that produces RegionShapes from a file. More...
#include <RSFileReaderWriter.h>
Public Member Functions | |
RSFileReader () | |
Constructor. | |
virtual | ~RSFileReader () |
Destructor. | |
virtual bool | read (vector< RegionShape * > &readShapes)=0 |
Read the filename set with setFile and returns true if no errors were reported, false otherwise. | |
virtual bool | readFile (const String &file, vector< RegionShape * > &shapes) |
Calls setFile() then read(). |
Abstract superclass for any class that reads a format that produces RegionShapes from a file.
Definition at line 142 of file RSFileReaderWriter.h.
casa::RSFileReader::RSFileReader | ( | ) | [inline] |
Constructor.
Definition at line 145 of file RSFileReaderWriter.h.
virtual casa::RSFileReader::~RSFileReader | ( | ) | [inline, virtual] |
Destructor.
Definition at line 148 of file RSFileReaderWriter.h.
virtual bool casa::RSFileReader::read | ( | vector< RegionShape * > & | readShapes | ) | [pure virtual] |
Read the filename set with setFile and returns true if no errors were reported, false otherwise.
If false is returned, the details can be found using lastError(). Any valid RegionShapes that were read from the file are placed in the given vector (which is cleared first).
Implemented in casa::DS9FileReader, and casa::XMLFileReaderWriter.
virtual bool casa::RSFileReader::readFile | ( | const String & | file, |
vector< RegionShape * > & | shapes | ||
) | [inline, virtual] |
Definition at line 157 of file RSFileReaderWriter.h.