#include <channelioxml.h>
Inheritance diagram for ChannelIOFormatXML::
Public Methods | |
ChannelIOFormatXML () | |
virtual | ~ChannelIOFormatXML () |
virtual bool | load (ChannelStore *store, QIODevice *file, const char *fmt) |
virtual bool | save (ChannelStore *store, QIODevice *file, const char *fmt) |
virtual ChannelFileMetaInfo | getMetaInfo (QIODevice *file, const char *fmt) |
QDomDocument | document () const |
bool | readDocument (ChannelStore *store) |
void | writeDocument (ChannelStore *store) |
Protected Methods | |
Channel * | readChannel (const QDomElement &elem) |
QString | readText (const QDomElement &elem, const QString &tag) |
int | readTextInt (const QDomElement &elem, const QString &tag) |
unsigned long | readTextULong (const QDomElement &parent, const QString &tag) |
bool | readAttrBool (const QDomElement &elem, const QString &name) |
QDomElement | writeChannel (QDomElement &parent, Channel *ch) |
QDomElement | writeText (QDomElement &parent, const QString &tag, const QString &text) |
QDomElement | writeTextInt (QDomElement &parent, const QString &tag, int text) |
QDomElement | writeTextULong (QDomElement &parent, const QString &tag, unsigned long text) |
QDomElement | writeElement (QDomNode &parent, const QString &tag) |
void | writeAttrBool (QDomElement &parent, const QString &name, const bool val) |
|
Load the contents of the specified QIODevice into the specified store. Returns true on success, false otherwise. Reimplemented from ChannelIOFormat. |
|
Save the contents of the specified store into the specified QIODevice. Returns true on success, false otherwise. Reimplemented from ChannelIOFormat. |