casacore
|
#include <AipsIOReaderWriter.h>
Public Member Functions | |
AipsIOReaderWriter () | |
Constructor. More... | |
~AipsIOReaderWriter () | |
Destructor. More... | |
bool | read (Record ®ion) |
RSFileReader methods //. More... | |
bool | read (ImageRegion *®ion) |
void | setOptions (const Record *options) |
RSFileWriter methods //. More... | |
bool | write (const Record ®ion) const |
Implements RSFileWriter::write. More... | |
bool | write (const ImageRegion ®ion) const |
Public Member Functions inherited from casacore::RFReader | |
RFReader () | |
Constructor. More... | |
virtual | ~RFReader () |
Destructor. More... | |
virtual Record * | options () |
Provides access to the plotting options that were found in the region file. More... | |
virtual bool | readFile (const String &file, Record ®ion) |
Calls setFile() then read(). More... | |
Public Member Functions inherited from casacore::RFReaderWriter | |
RFReaderWriter () | |
Constructor. More... | |
virtual | ~RFReaderWriter () |
Destructor. More... | |
virtual void | setFile (const String &filename) |
Sets the file to be read/written to the given. More... | |
virtual void | setName (const String ®ionName) |
Sets the region name associated withe the file to be read or written. More... | |
virtual const RFError & | lastError () const |
Returns the last error set during read/write. More... | |
Public Member Functions inherited from casacore::RFWriter | |
RFWriter () | |
Constructor. More... | |
virtual | ~RFWriter () |
Destructor. More... | |
virtual bool | writeFile (const String &filename, const Record ®ions) |
Calls setFile then write. More... | |
Additional Inherited Members | |
Public Types inherited from casacore::RFReaderWriter | |
enum | SupportedType { AIPS_BOX , DS9 , CASA_XML , AIPS_IO } |
An enum of all known subclasses/formats supported. More... | |
Static Public Member Functions inherited from casacore::RFReaderWriter | |
static SupportedType | supportedTypes (String type) |
Converts between enum and String for SupportedType. More... | |
static String | supportedTypes (SupportedType type) |
static String | extensionForType (SupportedType type) |
Returns the file extension for the given SupportedType. More... | |
static Vector< SupportedType > | supportedTypes () |
Returns all known SupportedTypes. More... | |
static Vector< String > | supportedTypeStrings () |
static RFReader * | readerForType (SupportedType type) |
Returns an appropriate child RFReader class for the given SupportedType, or NULL for an error (shouldn't happen). More... | |
static RFWriter * | writerForType (SupportedType type) |
Returns an new appropriate child RfWriter class for the given SupportedType, or NULL for an error (shouldn't happen). More... | |
static Record * | optionsWidgetForType (SupportedType type) |
Returns an new appropriate options widget for the given SupportedType, or NULL for an error (shouldn't happen). More... | |
Protected Member Functions inherited from casacore::RFReaderWriter | |
virtual void | setError (const String &error, bool fatal=false) const |
Convenience method for setting last error during read/write. More... | |
Protected Attributes inherited from casacore::RFReaderWriter | |
String * | pFilename_p |
Filename to be read/written. More... | |
String * | pRegionName_p |
Name to be assigned to the region. More... | |
RFError | lastError_p |
Last error seen during read/write. More... | |
Record | options_p |
Record containg plotting options for the regions. More... | |
Implementation of CASA region AipsIO file reader and writer
Public interface
To provide a class for reading and writing ImageRegion class records that have been stored into an AipsIO file.
Definition at line 67 of file AipsIOReaderWriter.h.
casacore::AipsIOReaderWriter::AipsIOReaderWriter | ( | ) |
Constructor.
casacore::AipsIOReaderWriter::~AipsIOReaderWriter | ( | ) |
Destructor.
bool casacore::AipsIOReaderWriter::read | ( | ImageRegion *& | region | ) |
|
virtual |
|
virtual |
RSFileWriter methods //.
Implements RSFileWriter::setOptions.
Reimplemented from casacore::RFWriter.
bool casacore::AipsIOReaderWriter::write | ( | const ImageRegion & | region | ) | const |
|
virtual |
Implements RSFileWriter::write.
Implements casacore::RFWriter.