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

Destructor

Definition at line 1779 of file PAutoRunParser.cpp.

Member Function Documentation

QString PAutoRunParser::CheckForAlias ( QString &  str)
private
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 2034 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 2101 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 2129 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 3406 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 3385 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 3427 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 3364 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 2155 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 2284 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2249 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2214 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2179 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2319 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 2976 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 2057 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 2079 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 2343 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 2646 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 2615 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2582 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2549 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2516 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2416 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 2384 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 2494 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 2366 of file PAutoRunParser.cpp.

Referenced by ConvertToXML().

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 2461 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 2664 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 2693 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2786 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2837 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 2903 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 2879 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 3000 of file PAutoRunParser.cpp.

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

Referenced by ConvertToXML().

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 3058 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 3088 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 3148 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 3116 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 3218 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 3281 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

void PAutoRunParser::ConvertToXML ( )
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 2952 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 3311 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

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 3335 of file PAutoRunParser.cpp.

References CheckForAlias().

Referenced by ConvertToXML().

PAutoRunCmdVector* PAutoRunParser::GetAutoRunCmdVector ( )
inline

Definition at line 166 of file PAutoRunParser.h.

References fAutoRunCmdVector.

Referenced by PSAX2AutoRunParseHandler::PSAX2AutoRunParseHandler().

POdbTagVector* PAutoRunParser::GetOdbTagVector ( )
inline

Definition at line 167 of file PAutoRunParser.h.

References fOdbTagVector.

int PAutoRunParser::GetParseErrorCounts ( )
inline

Definition at line 163 of file PAutoRunParser.h.

References fParseErrorCounter.

Referenced by main().

PXMLParseErrorVector* PAutoRunParser::GetXMLParseErrorVector ( )
inline

Definition at line 165 of file PAutoRunParser.h.

References fXMLParseErrorVector.

void PAutoRunParser::Parse ( )

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

Definition at line 3443 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().

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

Friends And Related Function Documentation

friend class PSAX2AutoRunParseHandler
friend

Definition at line 173 of file PAutoRunParser.h.

friend class PSAX2AutoRunParser
friend

Definition at line 232 of file PAutoRunParser.h.

Member Data Documentation

QMap<QString, QString> PAutoRunParser::fAlias
private

keep all alias

Definition at line 179 of file PAutoRunParser.h.

Referenced by CheckForAlias(), and ConvertToXML().

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

QString PAutoRunParser::fAutoRunXMLSchemaPath
private

file name of the XML-schema

Definition at line 176 of file PAutoRunParser.h.

Referenced by ConvertToXML().

QString PAutoRunParser::fInputFileName
private

file name of the user auto run sequence

Definition at line 175 of file PAutoRunParser.h.

Referenced by ConvertToXML().

POdbTagVector* PAutoRunParser::fOdbTagVector
private

pointer to the vector of ODB tags

Definition at line 184 of file PAutoRunParser.h.

Referenced by GetOdbTagVector().

int PAutoRunParser::fParseErrorCounter
private
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().

PXMLParseErrorVector* PAutoRunParser::fXMLParseErrorVector
private

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