svcore  1.9
XmlExportable Class Referenceabstract

#include <XmlExportable.h>

Inheritance diagram for XmlExportable:

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. 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)
 
static int getObjectExportId (const void *)
 

Detailed Description

Definition at line 25 of file XmlExportable.h.

Constructor & Destructor Documentation

◆ ~XmlExportable()

virtual XmlExportable::~XmlExportable ( )
inlinevirtual

Definition at line 28 of file XmlExportable.h.

Member Function Documentation

◆ toXml()

◆ 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().

◆ encodeEntities()

◆ encodeColour()

QString XmlExportable::encodeColour ( int  r,
int  g,
int  b 
)
static

Definition at line 54 of file XmlExportable.cpp.

◆ getObjectExportId()

int XmlExportable::getObjectExportId ( const void *  object)
static

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