svcore  1.9
XmlExportable Class Reference

#include <XmlExportable.h>

Inheritance diagram for XmlExportable:

List of all members.

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 *)

Detailed Description

Definition at line 25 of file XmlExportable.h.


Constructor & Destructor Documentation

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

Definition at line 28 of file XmlExportable.h.


Member Function Documentation

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::encodeColour ( int  r,
int  g,
int  b 
) [static]

Definition at line 54 of file XmlExportable.cpp.


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