svcore
1.9
|
#include <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 (int r, int g, int b) |
static int | getObjectExportId (const void *) |
Definition at line 25 of file XmlExportable.h.
virtual XmlExportable::~XmlExportable | ( | ) | [inline, virtual] |
Definition at line 28 of file XmlExportable.h.
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 Model, EditableDenseThreeDimensionalModel, SparseModel< PointType >, SparseModel< FlexiNote >, SparseModel< Note >, SparseModel< PathPoint >, SparseModel< TextPoint >, SparseModel< ImagePoint >, SparseModel< TimeValuePoint >, SparseModel< OneDimensionalPoint >, SparseModel< RegionRec >, FlexiNoteModel, Transform, NoteModel, RegionModel, SparseValueModel< PointType >, SparseValueModel< FlexiNote >, SparseValueModel< Note >, SparseValueModel< TimeValuePoint >, SparseValueModel< RegionRec >, ImageModel, TextModel, WaveFileModel, MultiSelection, WritableWaveFileModel, AggregateWaveModel, PathModel, AlignmentModel, ImagePoint, TextPoint, PlayParameters, and PluginXml.
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 ModelTransformerFactory::getConfigurationForTransform(), and RDFTransformFactoryImpl::getTransforms().
QString XmlExportable::encodeEntities | ( | QString | s | ) | [static] |
Definition at line 41 of file XmlExportable.cpp.
Referenced by TextMatcher::test(), PluginXml::toXml(), OneDimensionalPoint::toXml(), TimeValuePoint::toXml(), TextPoint::toXml(), ImagePoint::toXml(), RegionRec::toXml(), Note::toXml(), FlexiNote::toXml(), WritableWaveFileModel::toXml(), WaveFileModel::toXml(), SparseValueModel< RegionRec >::toXml(), Transform::toXml(), and Model::toXml().
QString XmlExportable::encodeColour | ( | int | r, |
int | g, | ||
int | b | ||
) | [static] |
Definition at line 54 of file XmlExportable.cpp.
int XmlExportable::getObjectExportId | ( | const void * | object | ) | [static] |
Definition at line 71 of file XmlExportable.cpp.
References mutex.
Referenced by FFTDataServer::generateFileBasename(), AlignmentModel::toXml(), EditableDenseThreeDimensionalModel::toXml(), and Model::toXml().