lemAutoRun
1.0
|
#include <PLemAutoRun.h>
Public Member Functions | |
PLemSampleCryoXMLParser (const QString fln, PLemAutoRun *lar) | |
~PLemSampleCryoXMLParser () | |
bool | isValid () |
bool | parse (QIODevice *device) |
bool | startDocument () |
bool | startElement () |
bool | endElement () |
bool | characters () |
bool | endDocument () |
Private Attributes | |
bool | fValid {false} |
QXmlStreamReader | fXml |
xml stream reader object More... | |
PLemAutoRun * | fLar |
pointer to the calling class More... | |
ELemSampleCryoKeyWords | fKey |
key tag for the parsing process More... | |
Class which handles the sample cryo parameter XML file for the LEM autorun sequence.
Definition at line 148 of file PLemAutoRun.h.
Definition at line 151 of file PLemAutoRun.h.
PLemSampleCryoXMLParser::PLemSampleCryoXMLParser | ( | const QString | fln, |
PLemAutoRun * | lar | ||
) |
XML Parser class for the sample cryo parameter file.
lar | pointer to the main class. |
Definition at line 1440 of file PLemAutoRun.cpp.
PLemSampleCryoXMLParser::~PLemSampleCryoXMLParser | ( | ) |
Destructor
Definition at line 1457 of file PLemAutoRun.cpp.
bool PLemSampleCryoXMLParser::characters | ( | ) |
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 1632 of file PLemAutoRun.cpp.
References eAbs_max_temp_diff, eBh_flow_d_heat, eBh_flow_offset, eBh_flow_p_heat_0, eBh_flow_p_heat_1, eBh_flow_temp, eBh_flow_temp_offset, eBh_max_flow, eBh_min_flow, eD_set_ratio, eDFlowDp0, eDFlowDp1, eDFlowDpExp, eFlow_factor, eFlow_set_absolute, eFlow_set_ratio, eFlow_timeout_reduction, eFlowLowestFlowToConsider, eFlowMaxRelFlowDiffToConsider, eHeatCapCof1, eHeatCapCof2, eHeatCapCof3, eHeater_max, eHeater_min, eMax_temp_increase, eMax_temp_trend, eNeedleValveInUse, ePrefNeedleValveAbsStep, ePrefNeedleValveCof_1_0, ePrefNeedleValveCof_1_1, ePrefNeedleValveCof_2_0, ePrefNeedleValveCof_2_1, ePrefNeedleValveCof_3_0, ePrefNeedleValveCof_3_1, ePrefNeedleValveCof_4_0, ePrefNeedleValveCof_4_1, ePrefNeedleValveRelStep, eRel_max_temp_diff, eTemp_regulation, eTimeout_flow_set, PLemAutoRun::fAbsMaxTempDiff, PLemAutoRun::fBHFlowDHeat, PLemAutoRun::fBHFlowOffset, PLemAutoRun::fBHFlowPHeat0, PLemAutoRun::fBHFlowPHeat1, PLemAutoRun::fBHFlowTemp, PLemAutoRun::fBHFlowTempOffset, PLemAutoRun::fBHMaxFlow, PLemAutoRun::fBHMinFlow, PLemAutoRun::fDFlowDp0, PLemAutoRun::fDFlowDp1, PLemAutoRun::fDFlowDpExp, PLemAutoRun::fDSetRatio, PLemAutoRun::fFlowFactor, PLemAutoRun::fFlowLowestFlowToConsider, PLemAutoRun::fFlowMaxRelFlowDiffToConsider, PLemAutoRun::fFlowSetAbsolute, PLemAutoRun::fFlowSetRatio, PLemAutoRun::fFlowTimeoutReduction, PLemAutoRun::fHeatCapCof1, PLemAutoRun::fHeatCapCof2, PLemAutoRun::fHeatCapCof3, PLemAutoRun::fHeaterMax, PLemAutoRun::fHeaterMin, fKey, fLar, PLemAutoRun::fMaxTempIncrease, PLemAutoRun::fMaxTempTrend, PLemAutoRun::fNeedleValveInUse, PLemAutoRun::fPrefNeedleValveAbsStep, PLemAutoRun::fPrefNeedleValveCof_1_0, PLemAutoRun::fPrefNeedleValveCof_1_1, PLemAutoRun::fPrefNeedleValveCof_2_0, PLemAutoRun::fPrefNeedleValveCof_2_1, PLemAutoRun::fPrefNeedleValveCof_3_0, PLemAutoRun::fPrefNeedleValveCof_3_1, PLemAutoRun::fPrefNeedleValveCof_4_0, PLemAutoRun::fPrefNeedleValveCof_4_1, PLemAutoRun::fPrefNeedleValveRelStep, PLemAutoRun::fRelMaxTempDiff, PLemAutoRun::fSampleTempRegulation, PLemAutoRun::fTimeoutFlowSet, and fXml.
Referenced by parse().
bool PLemSampleCryoXMLParser::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 1777 of file PLemAutoRun.cpp.
References fLar, and PLemAutoRun::fMaxTempIncrease.
Referenced by parse().
bool PLemSampleCryoXMLParser::endElement | ( | ) |
The reader calls this function when it has parsed an end element tag.
Definition at line 1617 of file PLemAutoRun.cpp.
Referenced by parse().
|
inline |
Definition at line 171 of file PLemAutoRun.h.
References fValid.
Referenced by PLemAutoRun::ReadSampleCryoXML().
bool PLemSampleCryoXMLParser::parse | ( | QIODevice * | device | ) |
parse the hvEdit startup xml-file.
device | QFile object of the hvEdit startup xml-file |
Definition at line 1471 of file PLemAutoRun.cpp.
References characters(), endDocument(), endElement(), fXml, startDocument(), and startElement().
Referenced by PLemSampleCryoXMLParser().
bool PLemSampleCryoXMLParser::startDocument | ( | ) |
The reader calls this function when it starts parsing the document.
Definition at line 1509 of file PLemAutoRun.cpp.
Referenced by parse().
bool PLemSampleCryoXMLParser::startElement | ( | ) |
The reader calls this function when it has parsed a start element tag.
qName | name of the XML tag found. |
Definition at line 1522 of file PLemAutoRun.cpp.
References eAbs_max_temp_diff, eBh_flow_d_heat, eBh_flow_offset, eBh_flow_p_heat_0, eBh_flow_p_heat_1, eBh_flow_temp, eBh_flow_temp_offset, eBh_max_flow, eBh_min_flow, eD_set_ratio, eDFlowDp0, eDFlowDp1, eDFlowDpExp, eFlow_factor, eFlow_set_absolute, eFlow_set_ratio, eFlow_timeout_reduction, eFlowLowestFlowToConsider, eFlowMaxRelFlowDiffToConsider, eHeatCapCof1, eHeatCapCof2, eHeatCapCof3, eHeater_max, eHeater_min, eMax_temp_increase, eMax_temp_trend, eNeedleValveInUse, ePrefNeedleValveAbsStep, ePrefNeedleValveCof_1_0, ePrefNeedleValveCof_1_1, ePrefNeedleValveCof_2_0, ePrefNeedleValveCof_2_1, ePrefNeedleValveCof_3_0, ePrefNeedleValveCof_3_1, ePrefNeedleValveCof_4_0, ePrefNeedleValveCof_4_1, ePrefNeedleValveRelStep, eRel_max_temp_diff, eTemp_regulation, eTimeout_flow_set, fKey, and fXml.
Referenced by parse().
|
private |
key tag for the parsing process
Definition at line 184 of file PLemAutoRun.h.
Referenced by characters(), endElement(), and startElement().
|
private |
pointer to the calling class
Definition at line 183 of file PLemAutoRun.h.
Referenced by characters(), endDocument(), and PLemSampleCryoXMLParser().
|
private |
Definition at line 181 of file PLemAutoRun.h.
Referenced by isValid(), and PLemSampleCryoXMLParser().
|
private |
xml stream reader object
Definition at line 182 of file PLemAutoRun.h.
Referenced by characters(), parse(), and startElement().