A serialiser for XML formatted output.
More...
#include <torcxmlserialiser.h>
|
virtual void | Prepare (QByteArray &Dest) override |
|
virtual void | Begin (QByteArray &Dest) override |
|
virtual void | AddProperty (QByteArray &Dest, const QString &Name, const QVariant &Value) override |
|
virtual void | End (QByteArray &Dest) override |
|
void | VariantToXML (const QString &Name, const QVariant &Value) |
|
void | ListToXML (const QString &Name, const QVariantList &Value) |
|
void | StringListToXML (const QString &Name, const QStringList &Value) |
|
void | MapToXML (const QString &Name, const QVariantMap &Value) |
|
A serialiser for XML formatted output.
TorcXMLSerialiser uses QXmlStreamWriter for the bulk of the serialisation overhead.
- Todo:
- Ensure complete consistency and interopability with all other serialisers.
Definition at line 11 of file torcxmlserialiser.h.
TorcXMLSerialiser::TorcXMLSerialiser |
( |
| ) |
|
virtual TorcXMLSerialiser::~TorcXMLSerialiser |
( |
| ) |
|
|
virtualdefault |
void TorcXMLSerialiser::AddProperty |
( |
QByteArray & |
Dest, |
|
|
const QString & |
Name, |
|
|
const QVariant & |
Value |
|
) |
| |
|
overrideprotectedvirtual |
void TorcXMLSerialiser::Begin |
( |
QByteArray & |
Dest | ) |
|
|
overrideprotectedvirtual |
void TorcXMLSerialiser::End |
( |
QByteArray & |
Dest | ) |
|
|
overrideprotectedvirtual |
void TorcXMLSerialiser::ListToXML |
( |
const QString & |
Name, |
|
|
const QVariantList & |
Value |
|
) |
| |
|
protected |
void TorcXMLSerialiser::MapToXML |
( |
const QString & |
Name, |
|
|
const QVariantMap & |
Value |
|
) |
| |
|
protected |
void TorcXMLSerialiser::Prepare |
( |
QByteArray & |
Dest | ) |
|
|
overrideprotectedvirtual |
void TorcXMLSerialiser::StringListToXML |
( |
const QString & |
Name, |
|
|
const QStringList & |
Value |
|
) |
| |
|
protected |
void TorcXMLSerialiser::VariantToXML |
( |
const QString & |
Name, |
|
|
const QVariant & |
Value |
|
) |
| |
|
protected |
QBuffer TorcXMLSerialiser::m_buffer |
|
protected |
QXmlStreamWriter TorcXMLSerialiser::m_xmlStream |
|
protected |
The documentation for this class was generated from the following files: