XmlExportable Class Reference

#include <XmlExportable.h>

Inherited by Document, ImagePoint, Layer, Model, MultiSelection, PlayParameters, PluginXml, TextPoint, Transform, and View.

Inheritance diagram for XmlExportable:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 24 of file XmlExportable.h.

Public Member Functions

virtual ~XmlExportable ()
virtual void toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const=0
 Stream this exportable object out to XML on a text stream.
virtual QString toXmlString (QString indent="", QString extraAttributes="") const
 Convert this exportable object to XML in a string.

Static Public Member Functions

static QString encodeEntities (QString)
static QString encodeColour (QColor)
static int getObjectExportId (const void *)


Constructor & Destructor Documentation

virtual XmlExportable::~XmlExportable (  )  [inline, virtual]

Definition at line 27 of file XmlExportable.h.


Member Function Documentation

virtual void XmlExportable::toXml ( QTextStream &  stream,
QString  indent = "",
QString  extraAttributes = "" 
) const [pure virtual]

Stream this exportable object out to XML on a text stream.

Implemented in PlayParameters, MultiSelection, AggregateWaveModel, EditableDenseThreeDimensionalModel, ImagePoint, ImageModel, Model, NoteModel, SparseModel< PointType >, SparseValueModel< PointType >, TextPoint, TextModel, WaveFileModel, WritableWaveFileModel, Document, Colour3DPlotLayer, ImageLayer, Layer, NoteLayer, SingleColourLayer, SliceLayer, SpectrogramLayer, SpectrumLayer, TextLayer, TimeInstantLayer, TimeRulerLayer, TimeValueLayer, WaveformLayer, PluginXml, Transform, Pane, View, SparseModel< Note >, SparseModel< TextPoint >, SparseModel< ImagePoint >, SparseModel< TimeValuePoint >, SparseModel< OneDimensionalPoint >, SparseModel< AlignmentModel::PathPoint >, SparseValueModel< Note >, and SparseValueModel< TimeValuePoint >.

Referenced by toXmlString().

QString XmlExportable::toXmlString ( QString  indent = "",
QString  extraAttributes = "" 
) const [virtual]

Convert this exportable object to XML in a string.

The default implementation calls toXml and returns the result as a string. Do not override this unless you really know what you're doing.

Definition at line 25 of file XmlExportable.cpp.

References toXml().

Referenced by LayerFactory::setLayerDefaultProperties().

QString XmlExportable::encodeEntities ( QString   )  [static]

Definition at line 41 of file XmlExportable.cpp.

Referenced by AudioGenerator::getDefaultPlayPluginConfiguration(), SVFileReader::readPlugin(), Layer::toBriefXml(), WaveFileModel::toXml(), Transform::toXml(), TextPoint::toXml(), PluginXml::toXml(), Model::toXml(), Layer::toXml(), ImagePoint::toXml(), and Document::writeBackwardCompatibleDerivation().

QString XmlExportable::encodeColour ( QColor   )  [static]

Definition at line 54 of file XmlExportable.cpp.

Referenced by ColourDatabase::getStringValues().

int XmlExportable::getObjectExportId ( const void *   )  [static]

Definition at line 71 of file XmlExportable.cpp.

Referenced by FFTDataServer::generateFileBasename(), View::getTextLabelHeight(), Layer::toBriefXml(), SparseModel< PointType >::toXml(), Model::toXml(), Layer::toXml(), EditableDenseThreeDimensionalModel::toXml(), Document::toXml(), and Document::writeBackwardCompatibleDerivation().


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:37 2008 for SonicVisualiser by  doxygen 1.5.1