27 #ifndef RSFILEREADERWRITER_H_
28 #define RSFILEREADERWRITER_H_
98 static std::vector<SupportedType> supportedTypes();
99 static std::vector<casacore::String> supportedTypesStrings();
112 static QWidget* optionsWidgetForType(SupportedType
type);
127 virtual const RFError& lastError()
const;
137 virtual void setError(
const casacore::String& error,
bool isFatal =
false)
const;
155 virtual bool read(std::vector<RegionShape*>& readShapes) = 0;
182 virtual void setOptions(
const QWidget* widget) = 0;
187 virtual bool write(
const std::vector<RegionShape*>& shapes)
const = 0;
191 const std::vector<RegionShape*>& shapes) {
193 return write(shapes);
RSFileWriter()
Constructor.
virtual bool readFile(const casacore::String &file, std::vector< RegionShape * > &shapes)
Calls setFile() then read().
virtual ~RSFileWriter()
Destructor.
Abstract superclass for any class that reads a format that produces RegionShapes from a file...
virtual casacore::String type() const
Implements RegionShape::type.
virtual ~RSFileReaderWriter()
Destructor.
RFError m_lastError
Last error seen during read/write.
Abstract superclass for any class that writes RegionShapes to a region file format.
bool write(const std::vector< RegionShape * > &shapes) const
Implements RegionFileWriter::write.
virtual ~RSFileReader()
Destructor.
RSFileReaderWriter()
Non-Static Members //.
Superclass for readers and writers containing common definitions and operations.
casacore::String m_filename
Filename to be read/written.
virtual bool writeFile(const casacore::String &filename, const std::vector< RegionShape * > &shapes)
Calls setFile then write.
void setOptions(const QWidget *widget)
Implements RegionFileWriter::setOptions.
QWidget * optionsWidget() const
Implements RegionFileWriter::optionsWidget.
SupportedType
Public Static Methods //.
String: the storage and methods of handling collections of characters.
RSFileReader()
Constructor.
Defines nreal time structures used by the VLA table filler.