svcore
1.9
|
#include <XmlExportable.h>
Public Types | |
enum | { NO_ID = -1 } |
typedef int | ExportId |
Public Member Functions | |
XmlExportable () | |
virtual | ~XmlExportable () |
ExportId | getExportId () const |
Return the numerical export identifier for this object. More... | |
virtual void | toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const =0 |
Stream this exportable object out to XML on a text stream. More... | |
virtual QString | toXmlString (QString indent="", QString extraAttributes="") const |
Convert this exportable object to XML in a string. More... | |
Static Public Member Functions | |
static QString | encodeEntities (QString) |
static QString | encodeColour (int r, int g, int b) |
Private Attributes | |
int | m_exportId |
Detailed Description
Definition at line 25 of file XmlExportable.h.
Member Typedef Documentation
typedef int XmlExportable::ExportId |
Definition at line 33 of file XmlExportable.h.
Member Enumeration Documentation
anonymous enum |
Enumerator | |
---|---|
NO_ID |
Definition at line 28 of file XmlExportable.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 35 of file XmlExportable.h.
|
inlinevirtual |
Definition at line 36 of file XmlExportable.h.
References encodeColour(), encodeEntities(), getExportId(), toXml(), and toXmlString().
Member Function Documentation
int XmlExportable::getExportId | ( | ) | const |
Return the numerical export identifier for this object.
It's allocated the first time this is called, so objects on which this is never called do not get allocated one.
Definition at line 71 of file XmlExportable.cpp.
References m_exportId, and mutex.
Referenced by EditableDenseThreeDimensionalModel::toXml(), BasicCompressedDenseThreeDimensionalModel::toXml(), EventSeries::toXml(), ImageModel::toXml(), TextModel::toXml(), Model::toXml(), SparseOneDimensionalModel::toXml(), RegionModel::toXml(), BoxModel::toXml(), SparseTimeValueModel::toXml(), NoteModel::toXml(), and ~XmlExportable().
|
pure virtual |
Stream this exportable object out to XML on a text stream.
Implemented in NoteModel, SparseTimeValueModel, BoxModel, RegionModel, SparseOneDimensionalModel, Model, TextModel, ImageModel, EventSeries, WritableWaveFileModel, BasicCompressedDenseThreeDimensionalModel, EditableDenseThreeDimensionalModel, Transform, ReadOnlyWaveFileModel, Path, MultiSelection, AggregateWaveModel, AlignmentModel, PlayParameters, and PluginXml.
Referenced by toXmlString(), and ~XmlExportable().
|
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 ModelTransformerFactory::getConfigurationForTransform(), RDFTransformFactoryImpl::getTransforms(), and ~XmlExportable().
|
static |
Definition at line 41 of file XmlExportable.cpp.
Referenced by TextMatcher::test(), PluginXml::toXml(), ReadOnlyWaveFileModel::toXml(), Transform::toXml(), WritableWaveFileModel::toXml(), Model::toXml(), Event::toXml(), RegionModel::toXml(), BoxModel::toXml(), SparseTimeValueModel::toXml(), NoteModel::toXml(), and ~XmlExportable().
|
static |
Definition at line 54 of file XmlExportable.cpp.
Referenced by ~XmlExportable().
Member Data Documentation
|
mutableprivate |
Definition at line 65 of file XmlExportable.h.
Referenced by getExportId().
The documentation for this class was generated from the following files:
Generated by 1.8.11