casa
$Rev:20696$
|
Implementation of RegionFileReader/RegionFileWriter for reading/writing CASA-XML files. More...
#include <XMLFileReaderWriter.h>
Public Member Functions | |
XMLFileReaderWriter () | |
Non-Static Members //. | |
~XMLFileReaderWriter () | |
Destructor. | |
bool | read (vector< RegionShape * > &shapes) |
RSFileReader methods //. | |
QWidget * | optionsWidget () const |
RSFileWriter methods //. | |
void | setOptions (const QWidget *widget) |
Implements RSFileWriter::setOptions. | |
bool | write (const vector< RegionShape * > &shapes) const |
Implements RSFileWriter::write. | |
Static Public Member Functions | |
static vector< RegionShape * > | DOMToShapes (QDomElement &element) |
Static Members //. | |
static QDomElement | shapesToDOM (QDomDocument &document, const vector< RegionShape * > &shapes) |
Returns a QDomElement that represents the given shapes. | |
Static Public Attributes | |
static const QString | DOCROOT_NAME |
XML file constants. | |
static const pair< QString, QString > | VERSION |
static const QString | SHAPE_OPTIONS |
static const QString | SHAPE |
Implementation of RegionFileReader/RegionFileWriter for reading/writing CASA-XML files.
Definition at line 72 of file XMLFileReaderWriter.h.
Non-Static Members //.
Constructor.
Destructor.
static vector<RegionShape*> casa::XMLFileReaderWriter::DOMToShapes | ( | QDomElement & | element | ) | [static] |
Static Members //.
Returns the shapes represented by the given QDomElement. The top-level element MUST have tag name SHAPE_OPTIONS, and will have zero or more children elements, each representing a RegionShape, with tag name SHAPE.
QWidget* casa::XMLFileReaderWriter::optionsWidget | ( | ) | const [virtual] |
bool casa::XMLFileReaderWriter::read | ( | vector< RegionShape * > & | shapes | ) | [virtual] |
void casa::XMLFileReaderWriter::setOptions | ( | const QWidget * | widget | ) | [virtual] |
Implements RSFileWriter::setOptions.
Implements casa::RSFileWriter.
static QDomElement casa::XMLFileReaderWriter::shapesToDOM | ( | QDomDocument & | document, |
const vector< RegionShape * > & | shapes | ||
) | [static] |
Returns a QDomElement that represents the given shapes.
The top-level element will have tag name SHAPE_OPTIONS, and will have zero or more children elements, each representing a RegionShape, with tag name SHAPE. The given document is used to create the element, but the element is NOT added to the document.
bool casa::XMLFileReaderWriter::write | ( | const vector< RegionShape * > & | shapes | ) | const [virtual] |
Implements RSFileWriter::write.
Implements casa::RSFileWriter.
const QString casa::XMLFileReaderWriter::DOCROOT_NAME [static] |
XML file constants.
Definition at line 92 of file XMLFileReaderWriter.h.
const QString casa::XMLFileReaderWriter::SHAPE [static] |
Definition at line 95 of file XMLFileReaderWriter.h.
const QString casa::XMLFileReaderWriter::SHAPE_OPTIONS [static] |
Definition at line 94 of file XMLFileReaderWriter.h.
const pair<QString, QString> casa::XMLFileReaderWriter::VERSION [static] |
Definition at line 93 of file XMLFileReaderWriter.h.