27 #ifndef XMLFILEREADERWRITIER_H_
28 #define XMLFILEREADERWRITIER_H_
59 static const QString
VAL;
80 static std::vector<RegionShape*>
DOMToShapes(QDomElement& element);
87 static QDomElement
shapesToDOM(QDomDocument& document,
88 const std::vector<RegionShape*>& shapes);
93 static const pair<QString, QString>
VERSION;
110 bool read(std::vector<RegionShape*>& shapes);
121 bool write(
const std::vector<RegionShape*>& shapes)
const;
A Vector of integers, for indexing into Array<T> objects.
static const QString DOCROOT_NAME
XML file constants.
bool read(std::vector< RegionShape * > &shapes)
RSFileReader methods //.
static QDomDocument DOCUMENT
Document used for creating nodes.
~XMLFileReaderWriter()
Destructor.
void setOptions(const QWidget *widget)
Implements RSFileWriter::setOptions.
XMLFileReaderWriter()
Non-Static Members //.
Abstract superclass for any class that reads a format that produces RegionShapes from a file...
static const QString SHAPE
static std::vector< RegionShape * > DOMToShapes(QDomElement &element)
Static Members //.
static QDomElement recordToXML(const casacore::RecordInterface &record, casacore::String elementName="casa-record")
Converts a casacore::Record to/from a QDomElement.
Abstract superclass for any class that writes RegionShapes to a region file format.
static casacore::Record XMLToRecord(const QDomElement &element)
static casacore::IPosition stringToShape(const QString &shape)
Constants and methods for reading/writing RS XML files.
static QString shapeToString(const casacore::IPosition &shape)
Converts an casacore::IPosition to/from a QString.
static const QString SHAPE_OPTIONS
A hierarchical collection of named fields of various types.
bool write(const std::vector< RegionShape * > &shapes) const
Implements RSFileWriter::write.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
static QDomElement shapesToDOM(QDomDocument &document, const std::vector< RegionShape * > &shapes)
Returns a QDomElement that represents the given shapes.
static const pair< QString, QString > VERSION
QWidget * optionsWidget() const
RSFileWriter methods //.
static const QString SHAPE
static const QString TYPE
String: the storage and methods of handling collections of characters.
static const QString NAME
static const QString ARRAY
Constants.
Abstract base class for Record classes.
Implementation of RegionFileReader/RegionFileWriter for reading/writing CASA-XML files.
static const QString FIELD