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

#include <PLemAutoRun.h>

Inheritance diagram for PLemAutoRunXMLParser:
Inheritance graph
[legend]
Collaboration diagram for PLemAutoRunXMLParser:
Collaboration graph
[legend]

Public Types

enum  ELemAutoRunKeyWords {
  eEmpty, eEnableAll, eXmlSchemaFln, eXmlAutoRunFln,
  eXmlAutoRunValidateFln, eXmlAutoRunHTML, eAutoRunPath, eHvSettingsPath,
  eDebug, eIgnore_clients, eIgnore_alarms, eFugHvCheck,
  eField_timeout, eField_accuracy, eHv_timeout, eHv_accuracy,
  eFOM_current_accuracy, eWEW_critical_current_ra, eWEWL_max_current, eWEWH_max_current,
  eDanfysik_max_current, eMag_param_wew, eMag_param_bpar, eSetup_sample_enabled,
  eSetup_wew_enabled, eSetup_bpar_enabled, eEnable_OnOff_Mode, eTrigger_events,
  eAlarms, eAlarm_td_hv_trip, eRun_info, eRun_comment,
  eTof_min, eTof_max, eMod_name, eMod_date,
  eLem_setup, eSpin_rot_angle, eSpin_rot_enabled, eSample_name,
  eSample_cryo, eEnergy_loss_param, eClients, eClients_analyzer,
  eClients_frontend, eClients_tfl, eClients_sample, eClients_sample_omega,
  eClients_WEW, eClients_danfysik, eClients_hv, eClients_lemvac,
  eHv_demand, eHv_measured, eHv_current, eHvDetector_demand,
  eHvDetector_measured, eSpin_rot_mag_input, eSpin_rot_mag_output, eDanfysik_input,
  eDanfysik_output, eWEW_input, eWEW_output, eMag_field,
  eTfl_input, eTfl_output, eSample_ctrl_ch, eSample_sensor_type,
  eSample_channel, eSample_input, eSample_output, eSample_datetime,
  eSample_rawvoltage, eSample_no_connection, eSample_bh_odb_offset_input, eSample_bh_odb_offset_output,
  eSample_oven_omega_input, eSample_oven_omega_output, eLemvac_input, eLemvac_output,
  eFOM_input, eFOM_output, eBeamline_demand
}
 

Public Member Functions

 PLemAutoRunXMLParser (PLemAutoRun *lar)
 
 ~PLemAutoRunXMLParser ()
 
bool startDocument ()
 
bool startElement (const QString &, const QString &, const QString &, const QXmlAttributes &qAttr)
 
bool endElement (const QString &, const QString &, const QString &)
 
bool characters (const QString &)
 
bool endDocument ()
 

Private Member Functions

void setAttribute (const QString key, const QXmlAttributes &qAttr)
 PLemAutoRunXMLParser::setAttribute. More...
 

Private Attributes

PLemAutoRunfLar
 pointer to the calling class More...
 
ELemAutoRunKeyWords fKey
 key tag for the parsing process More...
 

Detailed Description

Class which handles the startup init XML file for the LEM autorun sequence.

Definition at line 87 of file PLemAutoRun.h.

Member Enumeration Documentation

Enumerator
eEmpty 
eEnableAll 
eXmlSchemaFln 
eXmlAutoRunFln 
eXmlAutoRunValidateFln 
eXmlAutoRunHTML 
eAutoRunPath 
eHvSettingsPath 
eDebug 
eIgnore_clients 
eIgnore_alarms 
eFugHvCheck 
eField_timeout 
eField_accuracy 
eHv_timeout 
eHv_accuracy 
eFOM_current_accuracy 
eWEW_critical_current_ra 
eWEWL_max_current 
eWEWH_max_current 
eDanfysik_max_current 
eMag_param_wew 
eMag_param_bpar 
eSetup_sample_enabled 
eSetup_wew_enabled 
eSetup_bpar_enabled 
eEnable_OnOff_Mode 
eTrigger_events 
eAlarms 
eAlarm_td_hv_trip 
eRun_info 
eRun_comment 
eTof_min 
eTof_max 
eMod_name 
eMod_date 
eLem_setup 
eSpin_rot_angle 
eSpin_rot_enabled 
eSample_name 
eSample_cryo 
eEnergy_loss_param 
eClients 
eClients_analyzer 
eClients_frontend 
eClients_tfl 
eClients_sample 
eClients_sample_omega 
eClients_WEW 
eClients_danfysik 
eClients_hv 
eClients_lemvac 
eHv_demand 
eHv_measured 
eHv_current 
eHvDetector_demand 
eHvDetector_measured 
eSpin_rot_mag_input 
eSpin_rot_mag_output 
eDanfysik_input 
eDanfysik_output 
eWEW_input 
eWEW_output 
eMag_field 
eTfl_input 
eTfl_output 
eSample_ctrl_ch 
eSample_sensor_type 
eSample_channel 
eSample_input 
eSample_output 
eSample_datetime 
eSample_rawvoltage 
eSample_no_connection 
eSample_bh_odb_offset_input 
eSample_bh_odb_offset_output 
eSample_oven_omega_input 
eSample_oven_omega_output 
eLemvac_input 
eLemvac_output 
eFOM_input 
eFOM_output 
eBeamline_demand 

Definition at line 90 of file PLemAutoRun.h.

Constructor & Destructor Documentation

PLemAutoRunXMLParser::PLemAutoRunXMLParser ( PLemAutoRun lar)

XML Parser class for the lem autorun startup file.

Parameters
larpointer to the main class.

Definition at line 200 of file PLemAutoRun.cpp.

PLemAutoRunXMLParser::~PLemAutoRunXMLParser ( )

Destructor

Definition at line 211 of file PLemAutoRun.cpp.

Member Function Documentation

bool PLemAutoRunXMLParser::characters ( const QString &  str)

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 488 of file PLemAutoRun.cpp.

bool PLemAutoRunXMLParser::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 776 of file PLemAutoRun.cpp.

References LAR_XML_MISSING_ENTRY.

bool PLemAutoRunXMLParser::endElement ( const QString &  ,
const QString &  ,
const QString &   
)

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

Definition at line 473 of file PLemAutoRun.cpp.

void PLemAutoRunXMLParser::setAttribute ( const QString  key,
const QXmlAttributes &  qAttr 
)
private

PLemAutoRunXMLParser::setAttribute.

Parameters
key
val

Definition at line 1362 of file PLemAutoRun.cpp.

bool PLemAutoRunXMLParser::startDocument ( )

The reader calls this function when it starts parsing the document.

Definition at line 221 of file PLemAutoRun.cpp.

bool PLemAutoRunXMLParser::startElement ( const QString &  ,
const QString &  ,
const QString &  qName,
const QXmlAttributes &  qAttr 
)

The reader calls this function when it has parsed a start element tag.

Parameters
qNamename of the XML tag found.

Definition at line 234 of file PLemAutoRun.cpp.

Member Data Documentation

ELemAutoRunKeyWords PLemAutoRunXMLParser::fKey
private

key tag for the parsing process

Definition at line 133 of file PLemAutoRun.h.

PLemAutoRun* PLemAutoRunXMLParser::fLar
private

pointer to the calling class

Definition at line 132 of file PLemAutoRun.h.


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