28 #ifndef IMAGES_RFREADERWRITER_H 29 #define IMAGES_RFREADERWRITER_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/Logging/LogIO.h> 34 #include <casacore/casa/Containers/Record.h> 35 #include <casacore/coordinates/Coordinates/CoordinateSystem.h> 86 void set(
const String&
error,
bool isFatal =
false);
124 AIPS_BOX,
DS9, CASA_XML, AIPS_IO
162 virtual void setFile(
const String& filename);
165 virtual void setName(
const String& regionName);
168 virtual const RFError& lastError()
const;
184 virtual void setError(
const String&
error,
bool fatal =
false)
const;
240 virtual bool read(
Record& region) = 0;
296 options_p.defineRecord(
"regionoptions", *options );
303 virtual bool write(
const Record& region)
const = 0;
309 return write(regions);
virtual bool writeFile(const String &filename, const Record ®ions)
Calls setFile then write.
bool isFatal() const
Returns whether this error was fatal or not.
A 1-D Specialization of the Array class.
Abstract superclass for any class that reads a format that produces Regions from a file...
RFError()
Constructor, blank error.
virtual ~RFReader()
Destructor.
virtual ~RFReaderWriter()
Destructor.
Abstract superclass for any class that writes Regions to a region file format.
RFError lastError_p
Last error seen during read/write.
RFReaderWriter()
Constructor.
virtual void setOptions(const Record *options)
Sets the optional to the values.
const String & error() const
Returns this error's text.
String * pFilename_p
Filename to be read/written.
Convenience class for a String/bool pair.
A hierarchical collection of named fields of various types.
virtual bool readFile(const String &file, Record ®ion)
Calls setFile() then read().
String * pRegionName_p
Name to be assigned to the region.
virtual ~RFWriter()
Destructor.
virtual Record * options()
Provides access to the plotting options that were found in the region file.
Superclass for readers and writers containing common definitions and operations.
String: the storage and methods of handling collections of characters.
SupportedType
An enum of all known subclasses/formats supported.
this file contains all the compiler specific defines
Record options_p
Record containg plotting options for the regions.