casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Static Public Attributes
casa::XMLFileReaderWriter Class Reference

Implementation of RegionFileReader/RegionFileWriter for reading/writing CASA-XML files. More...

#include <XMLFileReaderWriter.h>

Inheritance diagram for casa::XMLFileReaderWriter:
casa::RSFileReader casa::RSFileWriter casa::RSFileReaderWriter casa::RSFileReaderWriter

List of all members.

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

Detailed Description

Implementation of RegionFileReader/RegionFileWriter for reading/writing CASA-XML files.

Definition at line 72 of file XMLFileReaderWriter.h.


Constructor & Destructor Documentation

Non-Static Members //.

Constructor.

Destructor.


Member Function Documentation

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]

RSFileWriter methods //.

Implements RSFileWriter::optionsWidget.

Implements casa::RSFileWriter.

bool casa::XMLFileReaderWriter::read ( vector< RegionShape * > &  shapes) [virtual]

RSFileReader methods //.

Implements RSFileReader::read.

Implements casa::RSFileReader.

void casa::XMLFileReaderWriter::setOptions ( const QWidget *  widget) [virtual]
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.


Member Data Documentation

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.

Definition at line 94 of file XMLFileReaderWriter.h.

const pair<QString, QString> casa::XMLFileReaderWriter::VERSION [static]

Definition at line 93 of file XMLFileReaderWriter.h.


The documentation for this class was generated from the following file: