svcore
1.9
|
#include <PluginXml.h>
Public Member Functions | |
PluginXml (Vamp::PluginBase *plugin) | |
virtual | ~PluginXml () |
virtual void | toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const |
Export plugin settings to XML. | |
virtual void | setParameters (const QXmlAttributes &) |
Set the parameters and program of a plugin from a set of XML attributes. | |
virtual void | setParametersFromXml (QString xml) |
Set the parameters and program of a plugin from an XML plugin element as returned by toXml. | |
virtual QString | toXmlString (QString indent="", QString extraAttributes="") const |
Convert this exportable object to XML in a string. | |
Static Public Member Functions | |
static QString | encodeConfigurationChars (QString text) |
static QString | decodeConfigurationChars (QString text) |
static QString | encodeEntities (QString) |
static QString | encodeColour (int r, int g, int b) |
static int | getObjectExportId (const void *) |
Protected Member Functions | |
QString | stripInvalidParameterNameCharacters (QString) const |
Protected Attributes | |
Vamp::PluginBase * | m_plugin |
Definition at line 24 of file PluginXml.h.
PluginXml::PluginXml | ( | Vamp::PluginBase * | plugin | ) |
Definition at line 33 of file PluginXml.cpp.
PluginXml::~PluginXml | ( | ) | [virtual] |
Definition at line 38 of file PluginXml.cpp.
void PluginXml::toXml | ( | QTextStream & | stream, |
QString | indent = "" , |
||
QString | extraAttributes = "" |
||
) | const [virtual] |
Export plugin settings to XML.
Implements XmlExportable.
Definition at line 59 of file PluginXml.cpp.
References encodeConfigurationChars(), XmlExportable::encodeEntities(), RealTimePluginInstance::getConfigurePairs(), m_plugin, and stripInvalidParameterNameCharacters().
Referenced by TransformFactory::getPluginConfigurationXml().
void PluginXml::setParameters | ( | const QXmlAttributes & | attrs | ) | [virtual] |
Set the parameters and program of a plugin from a set of XML attributes.
This is a partial inverse of toXml.
Definition at line 127 of file PluginXml.cpp.
References CHECK_ATTRIBUTE, RealTimePluginInstance::configure(), decodeConfigurationChars(), m_plugin, and stripInvalidParameterNameCharacters().
Referenced by setParametersFromXml().
void PluginXml::setParametersFromXml | ( | QString | xml | ) | [virtual] |
Set the parameters and program of a plugin from an XML plugin element as returned by toXml.
This is a partial inverse of toXml.
Definition at line 194 of file PluginXml.cpp.
References setParameters().
Referenced by ModelTransformerFactory::getConfigurationForTransform(), and TransformFactory::setParametersFromPluginConfigurationXml().
QString PluginXml::encodeConfigurationChars | ( | QString | text | ) | [static] |
Definition at line 41 of file PluginXml.cpp.
Referenced by toXml().
QString PluginXml::decodeConfigurationChars | ( | QString | text | ) | [static] |
Definition at line 50 of file PluginXml.cpp.
Referenced by setParameters().
QString PluginXml::stripInvalidParameterNameCharacters | ( | QString | s | ) | const [protected] |
Definition at line 228 of file PluginXml.cpp.
Referenced by setParameters(), and toXml().
QString XmlExportable::toXmlString | ( | QString | indent = "" , |
QString | extraAttributes = "" |
||
) | const [virtual, inherited] |
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 XmlExportable::toXml().
Referenced by ModelTransformerFactory::getConfigurationForTransform(), and RDFTransformFactoryImpl::getTransforms().
QString XmlExportable::encodeEntities | ( | QString | s | ) | [static, inherited] |
Definition at line 41 of file XmlExportable.cpp.
Referenced by TextMatcher::test(), 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, inherited] |
Definition at line 54 of file XmlExportable.cpp.
int XmlExportable::getObjectExportId | ( | const void * | object | ) | [static, inherited] |
Definition at line 71 of file XmlExportable.cpp.
References mutex.
Referenced by FFTDataServer::generateFileBasename(), AlignmentModel::toXml(), EditableDenseThreeDimensionalModel::toXml(), and Model::toXml().
Vamp::PluginBase* PluginXml::m_plugin [protected] |
Definition at line 56 of file PluginXml.h.
Referenced by setParameters(), and toXml().