lemAutoRun  1.0
Public Types | Public Member Functions | Private Attributes | List of all members
PLemSampleCryoXMLParser Class Reference

#include <PLemAutoRun.h>

Collaboration diagram for PLemSampleCryoXMLParser:
Collaboration graph
[legend]

Public Types

enum  ELemSampleCryoKeyWords {
  eEmpty, eTemp_regulation, eMax_temp_increase, eBh_max_flow,
  eBh_min_flow, eBh_flow_p_heat_0, eBh_flow_p_heat_1, eBh_flow_d_heat,
  eBh_flow_temp, eBh_flow_temp_offset, eBh_flow_offset, eD_set_ratio,
  eAbs_max_temp_diff, eRel_max_temp_diff, eMax_temp_trend, eHeater_min,
  eHeater_max, eTimeout_flow_set, eFlow_factor, eFlow_set_ratio,
  eFlow_set_absolute, eFlow_timeout_reduction, eFlowLowestFlowToConsider, eFlowMaxRelFlowDiffToConsider,
  eDFlowDp0, eDFlowDp1, eDFlowDpExp, eHeatCapCof1,
  eHeatCapCof2, eHeatCapCof3, eNeedleValveInUse, 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,
  ePrefNeedleValveAbsStep
}
 

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...
 
PLemAutoRunfLar
 pointer to the calling class More...
 
ELemSampleCryoKeyWords fKey
 key tag for the parsing process More...
 

Detailed Description

Class which handles the sample cryo parameter XML file for the LEM autorun sequence.

Definition at line 148 of file PLemAutoRun.h.

Member Enumeration Documentation

◆ ELemSampleCryoKeyWords

Enumerator
eEmpty 
eTemp_regulation 
eMax_temp_increase 
eBh_max_flow 
eBh_min_flow 
eBh_flow_p_heat_0 
eBh_flow_p_heat_1 
eBh_flow_d_heat 
eBh_flow_temp 
eBh_flow_temp_offset 
eBh_flow_offset 
eD_set_ratio 
eAbs_max_temp_diff 
eRel_max_temp_diff 
eMax_temp_trend 
eHeater_min 
eHeater_max 
eTimeout_flow_set 
eFlow_factor 
eFlow_set_ratio 
eFlow_set_absolute 
eFlow_timeout_reduction 
eFlowLowestFlowToConsider 
eFlowMaxRelFlowDiffToConsider 
eDFlowDp0 
eDFlowDp1 
eDFlowDpExp 
eHeatCapCof1 
eHeatCapCof2 
eHeatCapCof3 
eNeedleValveInUse 
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 
ePrefNeedleValveAbsStep 

Definition at line 151 of file PLemAutoRun.h.

Constructor & Destructor Documentation

◆ PLemSampleCryoXMLParser()

PLemSampleCryoXMLParser::PLemSampleCryoXMLParser ( const QString  fln,
PLemAutoRun lar 
)

XML Parser class for the sample cryo parameter file.

Parameters
larpointer to the main class.

Definition at line 1440 of file PLemAutoRun.cpp.

References fLar, fValid, and parse().

◆ ~PLemSampleCryoXMLParser()

PLemSampleCryoXMLParser::~PLemSampleCryoXMLParser ( )

Destructor

Definition at line 1457 of file PLemAutoRun.cpp.

Member Function Documentation

◆ characters()

bool PLemSampleCryoXMLParser::characters ( )

The reader calls this function when it has parsed a chunk of character data.

Parameters
strcontent 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().

◆ endDocument()

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().

◆ endElement()

bool PLemSampleCryoXMLParser::endElement ( )

The reader calls this function when it has parsed an end element tag.

Definition at line 1617 of file PLemAutoRun.cpp.

References eEmpty, and fKey.

Referenced by parse().

◆ isValid()

bool PLemSampleCryoXMLParser::isValid ( )
inline

Definition at line 171 of file PLemAutoRun.h.

References fValid.

Referenced by PLemAutoRun::ReadSampleCryoXML().

◆ parse()

bool PLemSampleCryoXMLParser::parse ( QIODevice *  device)

parse the hvEdit startup xml-file.

Parameters
deviceQFile object of the hvEdit startup xml-file
Returns
true on success, false otherwise

Definition at line 1471 of file PLemAutoRun.cpp.

References characters(), endDocument(), endElement(), fXml, startDocument(), and startElement().

Referenced by PLemSampleCryoXMLParser().

◆ startDocument()

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().

◆ startElement()

bool PLemSampleCryoXMLParser::startElement ( )

Member Data Documentation

◆ fKey

ELemSampleCryoKeyWords PLemSampleCryoXMLParser::fKey
private

key tag for the parsing process

Definition at line 184 of file PLemAutoRun.h.

Referenced by characters(), endElement(), and startElement().

◆ fLar

PLemAutoRun* PLemSampleCryoXMLParser::fLar
private

pointer to the calling class

Definition at line 183 of file PLemAutoRun.h.

Referenced by characters(), endDocument(), and PLemSampleCryoXMLParser().

◆ fValid

bool PLemSampleCryoXMLParser::fValid {false}
private

Definition at line 181 of file PLemAutoRun.h.

Referenced by isValid(), and PLemSampleCryoXMLParser().

◆ fXml

QXmlStreamReader PLemSampleCryoXMLParser::fXml
private

xml stream reader object

Definition at line 182 of file PLemAutoRun.h.

Referenced by characters(), parse(), and startElement().


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