lemAutoRun
1.0
|
#include <PAutoRunParser.h>
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 () |
PXMLParseErrorVector * | GetXMLParseErrorVector () |
PAutoRunCmdVector * | GetAutoRunCmdVector () |
POdbTagVector * | GetOdbTagVector () |
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... | |
PAutoRunCmdVector * | fAutoRunCmdVector |
pointer to the vector of the expanded auto run sequence More... | |
POdbTagVector * | fOdbTagVector |
pointer to the vector of ODB tags More... | |
PXMLParseErrorVector * | fXMLParseErrorVector |
vector holding all the parse error information More... | |
Friends | |
class | PSAX2AutoRunParseHandler |
class | PSAX2AutoRunParser |
Parser class which handles user auto run sequences.
Definition at line 152 of file PAutoRunParser.h.
PAutoRunParser::PAutoRunParser | ( | QString | userAutoRunSeqFln, |
QString & | schemaPath, | ||
QString & | xmlFln, | ||
PAutoRunCmdVector * | arcv, | ||
POdbTagVector * | odbtagv | ||
) |
Constructor of for the LEM auto run sequence parser.
userAutoRunSeqFln | file name of the user auto run sequence |
schemaPath | file name of the XML-schema needed for validation |
xmlFln | file name of the XML translated user auto run sequence |
arcv | pointer 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.
|
private |
Checks if an alias is present in the string, and if so replace it.
return: string in which the alias has been replaced by its value.
str | string from the user auto run sequence |
Definition at line 1991 of file PAutoRunParser.cpp.
References fAlias.
Referenced by ConvertDump(), ConvertField(), ConvertFieldDanfysik(), ConvertFieldWEWH(), ConvertFieldWEWL(), ConvertFOM(), ConvertHVOff(), ConvertLEMSetup(), ConvertLoopField(), ConvertLoopFieldDanfysik(), ConvertLoopFieldWEWH(), ConvertLoopFieldWEWL(), ConvertLoopSampleHV(), ConvertLoopTemp(), ConvertModerator(), ConvertOdbSetData(), ConvertOdbSetDataArray(), ConvertOdbTag(), ConvertRA_HV(), ConvertSampleHV(), ConvertSpinRot(), ConvertStart(), ConvertStop(), ConvertTemp(), ConvertTfl(), ConvertTitle(), ConvertTOF(), ConvertTransportHV(), ConvertWait(), and ConvertWarmUp().
|
private |
Converts a user auto run script ALIAS to the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2035 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts a user auto run script BPVX/BPVY to the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2102 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts a user auto run script comment to the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2130 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts the user auto run command DEGAUSS
into the corresponding XML command.
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3407 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts the user auto run command DEGAUSS_DANFYSIK
into the corresponding XML command.
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3386 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts the user auto run command DEGAUSS_SPIN_ROT
into the corresponding XML command.
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3428 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts the user auto run command DEGAUSS_WEW
into the corresponding XML command.
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3365 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts the user auto run command DUMP number_of_dumps
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2156 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts the user auto run command FIELD value [A|G]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts the user auto run command FIELD_DANFYSIK value [A|G]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts the user auto run command FIELD_WEWH value [A|G]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts the user auto run command FIELD_WEWL value [A|G]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts the user auto run command FOM value
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2320 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command HV_OFF <chamber>
into the corresponding XML command. <chamber> is one of these: MC, TC, SC
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2977 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run script command IGNORE_ALARMS to the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2058 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts a user auto run script command IGNORE_CLIENTS to the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2080 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts a user auto run command LEM_SETUP string
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2344 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command LOOP_END
into the corresponding XML command.
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2647 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts a user auto run command LOOP_FIELD LOOP_ELEMENT [A|G]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts a user auto run command LOOP_FIELD_DANFYSIK LOOP_ELEMENT [A|G]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts a user auto run command LOOP_FIELD_WEWH LOOP_ELEMENT [A|G]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts a user auto run command LOOP_FIELD_WEWL LOOP_ELEMENT [A|G]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts a user auto run command LOOP_ITERATOR
into the corresponding XML command.
str | string from the user auto run sequence |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2417 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts a user auto run command LOOP_LIST
into the corresponding XML command.
str | string from the user auto run sequence |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2385 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts a user auto run command LOOP_SAMPLE_HV
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2495 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command LOOP_START
into the corresponding XML command.
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2367 of file PAutoRunParser.cpp.
Referenced by ConvertToXML().
|
private |
Converts a user auto run command LOOP_TEMP
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2462 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command MODERATOR mod, date
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2665 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command ODB_SET_DATA <set_path>, <index>,
[, <read_path>, <read_value>, <timeout>, <tolerance>]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts a user auto run command ODB_SET_DATA_ARRAY <set_path>,
[,
]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts a user auto run command ODB_TAG <label> <ODB_PATH>[idx]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2838 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command RA_HV left, right[, top, bottom]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts a user auto run command SAMPLE_HV value
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2880 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command SPIN_ROT
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string 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().
|
private |
Converts a user auto run command START no_events
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3059 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts the user auto run command STOP no_events
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3089 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command TEMP T, dT [, HeaterRange, P, I, D, Flow]
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3149 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3117 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command TITLE string
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3219 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command TOF start, stop
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3282 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
void PAutoRunParser::ConvertToXML | ( | ) |
Converts the user auto run sequence to a XML-file without any consistency checks. These are done on the XML<->schema level.
Definition at line 1790 of file PAutoRunParser.cpp.
References ConvertAlias(), ConvertBPV(), ConvertComment(), ConvertDegauss(), ConvertDegaussDanfysik(), ConvertDegaussSpinRot(), ConvertDegaussWEW(), ConvertDump(), ConvertField(), ConvertFieldDanfysik(), ConvertFieldWEWH(), ConvertFieldWEWL(), ConvertFOM(), ConvertHVOff(), ConvertIgnoreAlarms(), ConvertIgnoreClients(), ConvertLEMSetup(), ConvertLoopEnd(), ConvertLoopField(), ConvertLoopFieldDanfysik(), ConvertLoopFieldWEWH(), ConvertLoopFieldWEWL(), ConvertLoopIterator(), ConvertLoopList(), ConvertLoopSampleHV(), ConvertLoopStart(), ConvertLoopTemp(), ConvertModerator(), ConvertOdbSetData(), ConvertOdbSetDataArray(), ConvertOdbTag(), ConvertRA_HV(), ConvertSampleHV(), ConvertSpinRot(), ConvertStart(), ConvertStop(), ConvertTemp(), ConvertTfl(), ConvertTitle(), ConvertTOF(), ConvertTransportHV(), ConvertWait(), ConvertWarmUp(), fAlias, fAutoRunXMLSchemaPath, fInputFileName, fParseErrorCounter, fXMLFileName, fXMLParseErrorVector, LAR_INPUT_FILE_NOT_EXISTING, LAR_INPUT_FILE_READ_ERROR, LAR_INVALID_CMD, LAR_OUTPUT_FILE_WRITE_ERROR, and ParseError().
Referenced by main().
|
private |
Converts a user auto run command TRANSPORT_HV <transport_hv_setting_file_name>
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 2953 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts a user auto run command WAIT time
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3312 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
private |
Converts the user auto run command WARMUP date, time
into the corresponding XML command.
str | string from the user auto run sequence |
lineNo | line number of the command line form the user auto run sequence. |
offset | formating offset string needed for loops |
xml | string list keeping the converted xml commands |
Definition at line 3336 of file PAutoRunParser.cpp.
References CheckForAlias().
Referenced by ConvertToXML().
|
inline |
Definition at line 166 of file PAutoRunParser.h.
References fAutoRunCmdVector.
Referenced by PSAX2AutoRunParseHandler::PSAX2AutoRunParseHandler().
|
inline |
Definition at line 167 of file PAutoRunParser.h.
References fOdbTagVector.
|
inline |
Definition at line 163 of file PAutoRunParser.h.
References fParseErrorCounter.
Referenced by main().
|
inline |
Definition at line 165 of file PAutoRunParser.h.
References fXMLParseErrorVector.
Referenced by PSAX2AutoRunParseHandler::error(), PSAX2AutoRunParseHandler::fatalError(), PSAX2AutoRunParseHandler::internalFatalError(), and PSAX2AutoRunParseHandler::warning().
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().
|
signal |
|
friend |
Definition at line 173 of file PAutoRunParser.h.
|
friend |
Definition at line 232 of file PAutoRunParser.h.
|
private |
keep all alias
Definition at line 179 of file PAutoRunParser.h.
Referenced by CheckForAlias(), and ConvertToXML().
|
private |
pointer to the vector of the expanded auto run sequence
Definition at line 183 of file PAutoRunParser.h.
Referenced by GetAutoRunCmdVector().
|
private |
file name of the XML-schema
Definition at line 176 of file PAutoRunParser.h.
Referenced by ConvertToXML().
|
private |
file name of the user auto run sequence
Definition at line 175 of file PAutoRunParser.h.
Referenced by ConvertToXML().
|
private |
pointer to the vector of ODB tags
Definition at line 184 of file PAutoRunParser.h.
Referenced by PSAX2AutoRunParseHandler::endElement(), and GetOdbTagVector().
|
private |
the number parse errors encountered before giving up
Definition at line 181 of file PAutoRunParser.h.
Referenced by ConvertField(), ConvertFieldDanfysik(), ConvertFieldWEWH(), ConvertFieldWEWL(), ConvertLoopField(), ConvertLoopFieldDanfysik(), ConvertLoopFieldWEWH(), ConvertLoopFieldWEWL(), ConvertOdbSetData(), ConvertOdbSetDataArray(), ConvertRA_HV(), ConvertSpinRot(), ConvertToXML(), GetParseErrorCounts(), Parse(), and PAutoRunParser().
|
private |
file name of the XML auto run sequence
Definition at line 177 of file PAutoRunParser.h.
Referenced by ConvertToXML(), and Parse().
|
private |
vector holding all the parse error information
Definition at line 233 of file PAutoRunParser.h.
Referenced by ConvertField(), ConvertFieldDanfysik(), ConvertFieldWEWH(), ConvertFieldWEWL(), ConvertLoopField(), ConvertLoopFieldDanfysik(), ConvertLoopFieldWEWH(), ConvertLoopFieldWEWL(), ConvertOdbSetData(), ConvertOdbSetDataArray(), ConvertRA_HV(), ConvertSpinRot(), ConvertToXML(), GetXMLParseErrorVector(), Parse(), and PAutoRunParser().