lemAutoRun
1.0
|
#include <PLemAutoRun.h>
Public Types | |
enum | ELemHvSettingsKeyWords { eEmpty, eHvDeviceName, eHvChNo, eHvChName, eHvDemand, eCurrentLimit } |
Public Member Functions | |
PLemHvSettingsFileParser () | |
~PLemHvSettingsFileParser () | |
bool | startDocument () |
bool | startElement (const QString &, const QString &, const QString &, const QXmlAttributes &) |
bool | endElement (const QString &, const QString &, const QString &) |
bool | characters (const QString &) |
bool | endDocument () |
bool | isValid (QString &errMsg) |
QVector< int > * | GetChNo () |
QVector< float > * | GetHvDemands () |
QVector< float > * | GetCurrentLimits () |
Private Attributes | |
bool | fValid |
QString | fErrorMsg |
QString | fHvDeviceName |
QVector< int > | fHvChNo |
QVector< QString > | fHvChName |
QVector< float > | fHvDemand |
QVector< float > | fCurrentLimit |
ELemHvSettingsKeyWords | fKey |
key tag for the parsing process More... | |
Class which handles the HV settings file for the LEM autorun sequence.
Definition at line 182 of file PLemAutoRun.h.
Enumerator | |
---|---|
eEmpty | |
eHvDeviceName | |
eHvChNo | |
eHvChName | |
eHvDemand | |
eCurrentLimit |
Definition at line 185 of file PLemAutoRun.h.
PLemHvSettingsFileParser::PLemHvSettingsFileParser | ( | ) |
XML Parser class for the HV settings file.
Definition at line 1697 of file PLemAutoRun.cpp.
PLemHvSettingsFileParser::~PLemHvSettingsFileParser | ( | ) |
Destructor
Definition at line 1711 of file PLemAutoRun.cpp.
bool PLemHvSettingsFileParser::characters | ( | const QString & | str | ) |
The reader calls this function when it has parsed a chunk of character data.
str | content of a tag. This is the real information! |
Definition at line 1780 of file PLemAutoRun.cpp.
bool PLemHvSettingsFileParser::endDocument | ( | ) |
The reader calls this function after it has finished parsing. At this point it is checked if all the needed information could be collected. Otherwise some default values will be tried and a warning emitted.
Definition at line 1844 of file PLemAutoRun.cpp.
bool PLemHvSettingsFileParser::endElement | ( | const QString & | , |
const QString & | , | ||
const QString & | |||
) |
The reader calls this function when it has parsed an end element tag.
Definition at line 1765 of file PLemAutoRun.cpp.
|
inline |
Definition at line 200 of file PLemAutoRun.h.
References fHvChNo.
Referenced by PLemAutoRun::LoadHvSettings().
|
inline |
Definition at line 202 of file PLemAutoRun.h.
References fCurrentLimit.
Referenced by PLemAutoRun::LoadHvSettings().
|
inline |
Definition at line 201 of file PLemAutoRun.h.
References fHvDemand.
Referenced by PLemAutoRun::LoadHvSettings().
|
inline |
Definition at line 198 of file PLemAutoRun.h.
References fErrorMsg, and fValid.
Referenced by PLemAutoRun::LoadHvSettings().
bool PLemHvSettingsFileParser::startDocument | ( | ) |
The reader calls this function when it starts parsing the document.
Definition at line 1725 of file PLemAutoRun.cpp.
bool PLemHvSettingsFileParser::startElement | ( | const QString & | , |
const QString & | , | ||
const QString & | qName, | ||
const QXmlAttributes & | |||
) |
The reader calls this function when it has parsed a start element tag.
qName | name of the XML tag found. |
Definition at line 1740 of file PLemAutoRun.cpp.
|
private |
Definition at line 211 of file PLemAutoRun.h.
Referenced by GetCurrentLimits().
|
private |
Definition at line 206 of file PLemAutoRun.h.
Referenced by isValid().
|
private |
Definition at line 209 of file PLemAutoRun.h.
|
private |
Definition at line 208 of file PLemAutoRun.h.
Referenced by GetChNo().
|
private |
Definition at line 210 of file PLemAutoRun.h.
Referenced by GetHvDemands().
|
private |
Definition at line 207 of file PLemAutoRun.h.
|
private |
key tag for the parsing process
Definition at line 213 of file PLemAutoRun.h.
|
private |
Definition at line 205 of file PLemAutoRun.h.
Referenced by isValid().