lemAutoRun  1.0
Signals | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
PAutoRunParser Class Reference

#include <PAutoRunParser.h>

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

Signals

void ParseError (int noOfErrors, int idx, int errorNo, int line, QString errorMsg)
 

Public Member Functions

 PAutoRunParser (QString userAutoRunSeqFln, QString &schemaPath, QString &xmlFln, PAutoRunCmdVector *arcv, POdbTagVector *odbtagv)
 
 ~PAutoRunParser ()
 
void ConvertToXML ()
 
void Parse ()
 
int GetParseErrorCounts ()
 
PXMLParseErrorVectorGetXMLParseErrorVector ()
 
PAutoRunCmdVectorGetAutoRunCmdVector ()
 
POdbTagVectorGetOdbTagVector ()
 

Private Member Functions

QString CheckForAlias (QString &str)
 
void ConvertAlias (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertIgnoreAlarms (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertIgnoreClients (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertBPV (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertComment (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertDegaussWEW (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertDegaussDanfysik (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertDegauss (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertDegaussSpinRot (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertDump (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertFieldWEWL (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertFieldWEWH (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertFieldDanfysik (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertField (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertFOM (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertLEMSetup (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertLoopStart (int lineNo, QString &offset, QStringList &xml)
 
void ConvertLoopList (QString &str, QString &offset, QStringList &xml)
 
void ConvertLoopIterator (QString &str, QString &offset, QStringList &xml)
 
void ConvertLoopTemp (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertLoopSampleHV (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertLoopFieldWEWL (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertLoopFieldWEWH (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertLoopFieldDanfysik (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertLoopField (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertLoopEnd (QString &offset, QStringList &xml)
 
void ConvertModerator (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertSampleHV (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertRA_HV (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertTransportHV (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertHVOff (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertOdbSetData (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertOdbSetDataArray (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertOdbTag (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertStart (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertStop (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertSpinRot (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertTfl (QString &str, int lineNo, QString &offset, QStringList &xml)
 PAutoRunParser::ConvertTfl. More...
 
void ConvertTemp (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertTitle (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertTOF (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertWait (QString &str, int lineNo, QString &offset, QStringList &xml)
 
void ConvertWarmUp (QString &str, int lineNo, QString &offset, QStringList &xml)
 

Private Attributes

QString fInputFileName
 file name of the user auto run sequence More...
 
QString fAutoRunXMLSchemaPath
 file name of the XML-schema More...
 
QString fXMLFileName
 file name of the XML auto run sequence More...
 
QMap< QString, QString > fAlias
 keep all alias More...
 
int fParseErrorCounter
 the number parse errors encountered before giving up More...
 
PAutoRunCmdVectorfAutoRunCmdVector
 pointer to the vector of the expanded auto run sequence More...
 
POdbTagVectorfOdbTagVector
 pointer to the vector of ODB tags More...
 
PXMLParseErrorVectorfXMLParseErrorVector
 vector holding all the parse error information More...
 

Friends

class PSAX2AutoRunParseHandler
 
class PSAX2AutoRunParser
 

Detailed Description

Parser class which handles user auto run sequences.

Definition at line 152 of file PAutoRunParser.h.

Constructor & Destructor Documentation

◆ PAutoRunParser()

PAutoRunParser::PAutoRunParser ( QString  userAutoRunSeqFln,
QString &  schemaPath,
QString &  xmlFln,
PAutoRunCmdVector arcv,
POdbTagVector odbtagv 
)

Constructor of for the LEM auto run sequence parser.

Parameters
userAutoRunSeqFlnfile name of the user auto run sequence
schemaPathfile name of the XML-schema needed for validation
xmlFlnfile name of the XML translated user auto run sequence
arcvpointer to the auto run command vector which stores all commands

Definition at line 1760 of file PAutoRunParser.cpp.

References fParseErrorCounter, and fXMLParseErrorVector.

◆ ~PAutoRunParser()

PAutoRunParser::~PAutoRunParser ( )

Destructor

Definition at line 1779 of file PAutoRunParser.cpp.

Member Function Documentation

◆ CheckForAlias()

QString PAutoRunParser::CheckForAlias ( QString &  str)
private

◆ ConvertAlias()

void PAutoRunParser::ConvertAlias ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run script ALIAS to the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2035 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertBPV()

void PAutoRunParser::ConvertBPV ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run script BPVX/BPVY to the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2102 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertComment()

void PAutoRunParser::ConvertComment ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run script comment to the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2130 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertDegauss()

void PAutoRunParser::ConvertDegauss ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command DEGAUSS into the corresponding XML command.

Parameters
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3407 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertDegaussDanfysik()

void PAutoRunParser::ConvertDegaussDanfysik ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command DEGAUSS_DANFYSIK into the corresponding XML command.

Parameters
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3386 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertDegaussSpinRot()

void PAutoRunParser::ConvertDegaussSpinRot ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command DEGAUSS_SPIN_ROT into the corresponding XML command.

Parameters
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3428 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertDegaussWEW()

void PAutoRunParser::ConvertDegaussWEW ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command DEGAUSS_WEW into the corresponding XML command.

Parameters
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3365 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertDump()

void PAutoRunParser::ConvertDump ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command DUMP number_of_dumps into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2156 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertField()

void PAutoRunParser::ConvertField ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command FIELD value [A|G] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2285 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertFieldDanfysik()

void PAutoRunParser::ConvertFieldDanfysik ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command FIELD_DANFYSIK value [A|G] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2250 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertFieldWEWH()

void PAutoRunParser::ConvertFieldWEWH ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command FIELD_WEWH value [A|G] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2215 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertFieldWEWL()

void PAutoRunParser::ConvertFieldWEWL ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command FIELD_WEWL value [A|G] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2180 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertFOM()

void PAutoRunParser::ConvertFOM ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command FOM value into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2320 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertHVOff()

void PAutoRunParser::ConvertHVOff ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command HV_OFF <chamber> into the corresponding XML command. <chamber> is one of these: MC, TC, SC

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2977 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertIgnoreAlarms()

void PAutoRunParser::ConvertIgnoreAlarms ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run script command IGNORE_ALARMS to the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2058 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertIgnoreClients()

void PAutoRunParser::ConvertIgnoreClients ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run script command IGNORE_CLIENTS to the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2080 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertLEMSetup()

void PAutoRunParser::ConvertLEMSetup ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LEM_SETUP string into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2344 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertLoopEnd()

void PAutoRunParser::ConvertLoopEnd ( QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LOOP_END into the corresponding XML command.

Parameters
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2647 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertLoopField()

void PAutoRunParser::ConvertLoopField ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LOOP_FIELD LOOP_ELEMENT [A|G] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2616 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertLoopFieldDanfysik()

void PAutoRunParser::ConvertLoopFieldDanfysik ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LOOP_FIELD_DANFYSIK LOOP_ELEMENT [A|G] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2583 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertLoopFieldWEWH()

void PAutoRunParser::ConvertLoopFieldWEWH ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LOOP_FIELD_WEWH LOOP_ELEMENT [A|G] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2550 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertLoopFieldWEWL()

void PAutoRunParser::ConvertLoopFieldWEWL ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LOOP_FIELD_WEWL LOOP_ELEMENT [A|G] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2517 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertLoopIterator()

void PAutoRunParser::ConvertLoopIterator ( QString &  str,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LOOP_ITERATOR into the corresponding XML command.

Parameters
strstring from the user auto run sequence
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2417 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertLoopList()

void PAutoRunParser::ConvertLoopList ( QString &  str,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LOOP_LIST into the corresponding XML command.

Parameters
strstring from the user auto run sequence
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2385 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertLoopSampleHV()

void PAutoRunParser::ConvertLoopSampleHV ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LOOP_SAMPLE_HV into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2495 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertLoopStart()

void PAutoRunParser::ConvertLoopStart ( int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LOOP_START into the corresponding XML command.

Parameters
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2367 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

◆ ConvertLoopTemp()

void PAutoRunParser::ConvertLoopTemp ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command LOOP_TEMP into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2462 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertModerator()

void PAutoRunParser::ConvertModerator ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command MODERATOR mod, date into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2665 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertOdbSetData()

void PAutoRunParser::ConvertOdbSetData ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command ODB_SET_DATA <set_path>, <index>,

[, <read_path>, <read_value>, <timeout>, <tolerance>] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2694 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertOdbSetDataArray()

void PAutoRunParser::ConvertOdbSetDataArray ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command ODB_SET_DATA_ARRAY <set_path>,

[,

] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2787 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertOdbTag()

void PAutoRunParser::ConvertOdbTag ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command ODB_TAG <label> <ODB_PATH>[idx] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2838 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertRA_HV()

void PAutoRunParser::ConvertRA_HV ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command RA_HV left, right[, top, bottom] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2904 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertSampleHV()

void PAutoRunParser::ConvertSampleHV ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command SAMPLE_HV value into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2880 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertSpinRot()

void PAutoRunParser::ConvertSpinRot ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command SPIN_ROT

into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3001 of file PAutoRunParser.cpp.

References CheckForAlias(), fParseErrorCounter, fXMLParseErrorVector, LAR_INVALID_CMD, and ParseError().

Referenced by ConvertToXML().

◆ ConvertStart()

void PAutoRunParser::ConvertStart ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command START no_events into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3059 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertStop()

void PAutoRunParser::ConvertStop ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command STOP no_events into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3089 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertTemp()

void PAutoRunParser::ConvertTemp ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command TEMP T, dT [, HeaterRange, P, I, D, Flow] into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3149 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertTfl()

void PAutoRunParser::ConvertTfl ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

PAutoRunParser::ConvertTfl.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3117 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertTitle()

void PAutoRunParser::ConvertTitle ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command TITLE string into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3219 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertTOF()

void PAutoRunParser::ConvertTOF ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command TOF start, stop into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3282 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertToXML()

void PAutoRunParser::ConvertToXML ( )

◆ ConvertTransportHV()

void PAutoRunParser::ConvertTransportHV ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command TRANSPORT_HV <transport_hv_setting_file_name> into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 2953 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertWait()

void PAutoRunParser::ConvertWait ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts a user auto run command WAIT time into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3312 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ ConvertWarmUp()

void PAutoRunParser::ConvertWarmUp ( QString &  str,
int  lineNo,
QString &  offset,
QStringList &  xml 
)
private

Converts the user auto run command WARMUP date, time into the corresponding XML command.

Parameters
strstring from the user auto run sequence
lineNoline number of the command line form the user auto run sequence.
offsetformating offset string needed for loops
xmlstring list keeping the converted xml commands

Definition at line 3336 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

◆ GetAutoRunCmdVector()

PAutoRunCmdVector* PAutoRunParser::GetAutoRunCmdVector ( )
inline

Definition at line 166 of file PAutoRunParser.h.

References fAutoRunCmdVector.

Referenced by PSAX2AutoRunParseHandler::PSAX2AutoRunParseHandler().

◆ GetOdbTagVector()

POdbTagVector* PAutoRunParser::GetOdbTagVector ( )
inline

Definition at line 167 of file PAutoRunParser.h.

References fOdbTagVector.

◆ GetParseErrorCounts()

int PAutoRunParser::GetParseErrorCounts ( )
inline

Definition at line 163 of file PAutoRunParser.h.

References fParseErrorCounter.

Referenced by main().

◆ GetXMLParseErrorVector()

PXMLParseErrorVector* PAutoRunParser::GetXMLParseErrorVector ( )
inline

◆ Parse()

void PAutoRunParser::Parse ( )

Handles the XML parsing of the converted user auto run sequence.

Definition at line 3444 of file PAutoRunParser.cpp.

References fParseErrorCounter, fXMLFileName, fXMLParseErrorVector, LAR_XML_EXCEPTION, LAR_XML_INIT_ERROR, LAR_XML_OUT_OF_MEMORY, LAR_XML_UNEXPECTED_EXCEPTION, and ParseError().

Referenced by main().

◆ ParseError

void PAutoRunParser::ParseError ( int  noOfErrors,
int  idx,
int  errorNo,
int  line,
QString  errorMsg 
)
signal

Friends And Related Function Documentation

◆ PSAX2AutoRunParseHandler

friend class PSAX2AutoRunParseHandler
friend

Definition at line 173 of file PAutoRunParser.h.

◆ PSAX2AutoRunParser

friend class PSAX2AutoRunParser
friend

Definition at line 232 of file PAutoRunParser.h.

Member Data Documentation

◆ fAlias

QMap<QString, QString> PAutoRunParser::fAlias
private

keep all alias

Definition at line 179 of file PAutoRunParser.h.

Referenced by CheckForAlias(), and ConvertToXML().

◆ fAutoRunCmdVector

PAutoRunCmdVector* PAutoRunParser::fAutoRunCmdVector
private

pointer to the vector of the expanded auto run sequence

Definition at line 183 of file PAutoRunParser.h.

Referenced by GetAutoRunCmdVector().

◆ fAutoRunXMLSchemaPath

QString PAutoRunParser::fAutoRunXMLSchemaPath
private

file name of the XML-schema

Definition at line 176 of file PAutoRunParser.h.

Referenced by ConvertToXML().

◆ fInputFileName

QString PAutoRunParser::fInputFileName
private

file name of the user auto run sequence

Definition at line 175 of file PAutoRunParser.h.

Referenced by ConvertToXML().

◆ fOdbTagVector

POdbTagVector* PAutoRunParser::fOdbTagVector
private

pointer to the vector of ODB tags

Definition at line 184 of file PAutoRunParser.h.

Referenced by PSAX2AutoRunParseHandler::endElement(), and GetOdbTagVector().

◆ fParseErrorCounter

int PAutoRunParser::fParseErrorCounter
private

◆ fXMLFileName

QString PAutoRunParser::fXMLFileName
private

file name of the XML auto run sequence

Definition at line 177 of file PAutoRunParser.h.

Referenced by ConvertToXML(), and Parse().

◆ fXMLParseErrorVector

PXMLParseErrorVector* PAutoRunParser::fXMLParseErrorVector
private

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