32     const unsigned found = foundAsStr.isEmpty() ? 0 : foundAsStr.toUInt();
 
   33     if (found < expectedVersion)
 
   35     if (found > expectedVersion)
 
   41     if (
m_r->name() != tag) {
 
   42         if (!
m_r->isEndElement())
 
   43             m_r->skipCurrentElement();
 
   44         m_r->skipCurrentElement();
 
   47     if (!
m_r->isEndElement())
 
   48         m_r->skipCurrentElement();
 
   57     while (
m_r->name() != tag && !
m_r->hasError())
 
   58         m_r->readNextStartElement();
 
   66     if (
m_r->name() != expectedTag) {
 
   69         QString foundTag = 
m_r->name().toString();
 
   78     if (
m_r->tokenType() != token)
 
   85         m_w->writeStartElement(tag);
 
   93         m_w->writeEndElement();
 
Defines class DeserializationException.
 
static DeserializationException streamError()
 
static DeserializationException tooOld()
 
static DeserializationException tooNew()
 
void gotoEndElementOfTag(const QString &tag)
 
void start(const QString &tag)
 
void assertCurrentTag(const QString &expectedTag) const
 
void writeVersion(unsigned version) const
As writer, serializes the given version number. As reader, does nothing.
 
void assertCurrentToken(QXmlStreamReader::TokenType token) const
 
void gotoStartElementOfTag(const QString &tag)
 
void finish(const QString &tag)
 
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...