SpikeStream Library
0.2
|
#include <XMLParameterParser.h>
Public Member Functions | |
XMLParameterParser () | |
~XMLParameterParser () | |
QHash< QString, double > | getParameterMap (const QString &xmlString) |
Protected Member Functions | |
bool | characters (const QString &ch) |
bool | endElement (const QString &, const QString &, const QString &) |
bool | startDocument () |
bool | startElement (const QString &, const QString &, const QString &, const QXmlAttributes &) |
bool | error (const QXmlParseException &exception) |
QString | errorString () |
bool | fatalError (const QXmlParseException &exception) |
bool | warning (const QXmlParseException &exception) |
Extracts parameters stored in double format from an XML string.
Definition at line 12 of file XMLParameterParser.h.
Constructor
Definition at line 11 of file XMLParameterParser.cpp.
Destructor
Definition at line 16 of file XMLParameterParser.cpp.
bool XMLParameterParser::characters | ( | const QString & | chars | ) | [protected] |
Called when parser encounters characters.
Definition at line 50 of file XMLParameterParser.cpp.
bool XMLParameterParser::endElement | ( | const QString & | , |
const QString & | , | ||
const QString & | elemName | ||
) | [protected] |
Called when the parser encounters the end of an element.
Definition at line 72 of file XMLParameterParser.cpp.
bool XMLParameterParser::error | ( | const QXmlParseException & | parseEx | ) | [protected] |
Called when the parser generates an error.
Definition at line 89 of file XMLParameterParser.cpp.
QString XMLParameterParser::errorString | ( | ) | [protected] |
Returns a default error string.
Definition at line 96 of file XMLParameterParser.cpp.
bool XMLParameterParser::fatalError | ( | const QXmlParseException & | parseEx | ) | [protected] |
Called when the parser generates a fatal error.
Definition at line 103 of file XMLParameterParser.cpp.
QHash< QString, double > XMLParameterParser::getParameterMap | ( | const QString & | xmlString | ) |
Parses the XML string and returns a map of parameters
Definition at line 25 of file XMLParameterParser.cpp.
bool XMLParameterParser::startDocument | ( | ) | [protected] |
Called when parser reaches the start of the document.
Definition at line 110 of file XMLParameterParser.cpp.
bool XMLParameterParser::startElement | ( | const QString & | , |
const QString & | , | ||
const QString & | qName, | ||
const QXmlAttributes & | |||
) | [protected] |
Called when parser reaches the start of an element.
Definition at line 117 of file XMLParameterParser.cpp.
bool XMLParameterParser::warning | ( | const QXmlParseException & | ex | ) | [protected] |
Called when the parser generates a warning.
Definition at line 130 of file XMLParameterParser.cpp.