Torc  0.1
Public Member Functions | List of all members
TorcXMLReader Class Reference

#include <torcxmlreader.h>

Public Member Functions

 TorcXMLReader (const QString &File)
 
 TorcXMLReader (QByteArray &Data)
 
 ~TorcXMLReader ()=default
 
bool IsValid (QString &Message) const
 
QVariantMap GetResult (void) const
 

Detailed Description

A simple XML file reader.

TorcXMLReader will open and parse an XML file, returning the contents of the file as a hierarchical QVariantMap.

There is no support for mixed elements or any attributes - as these cannot be represented within a QVariantMap.

Note
TorcXMLReader does not support empty elements.

Definition at line 8 of file torcxmlreader.h.

Constructor & Destructor Documentation

TorcXMLReader::TorcXMLReader ( const QString &  File)
explicit

Definition at line 43 of file torcxmlreader.cpp.

TorcXMLReader::TorcXMLReader ( QByteArray &  Data)
explicit

Definition at line 68 of file torcxmlreader.cpp.

TorcXMLReader::~TorcXMLReader ( )
default

Member Function Documentation

QVariantMap TorcXMLReader::GetResult ( void  ) const

Definition at line 86 of file torcxmlreader.cpp.

bool TorcXMLReader::IsValid ( QString &  Message) const

Definition at line 80 of file torcxmlreader.cpp.


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