The PMusrWizDefaultXMLParser class parses the musrWiz.xml default settings file.
More...
#include <PAdmin.h>
The PMusrWizDefaultXMLParser class parses the musrWiz.xml default settings file.
This class reads the musrWiz.xml file which contains the default settings for the wizard, including the default institute, instrument, and fit type.
◆ EKeyWords
Enumeration of XML tag keywords for parsing state machine.
| Enumerator |
|---|
| eEmpty | |
| eInstitute | |
| eInstrument | |
| eFitType | |
◆ PMusrWizDefaultXMLParser()
| PMusrWizDefaultXMLParser::PMusrWizDefaultXMLParser |
( |
const QString & | fln, |
|
|
PAdmin * | admin ) |
Constructor. Parses the given musrWiz.xml file.
- Parameters
-
| fln | Path to the musrWiz.xml file. |
| admin | Pointer to the PAdmin object where parsed defaults will be stored. |
XML Parser class for the musrWiz default settings.
- Parameters
-
| admin | pointer to an admin class instance. |
◆ ~PMusrWizDefaultXMLParser()
| virtual PMusrWizDefaultXMLParser::~PMusrWizDefaultXMLParser |
( |
| ) |
|
|
inlinevirtual |
◆ characters()
| bool PMusrWizDefaultXMLParser::characters |
( |
| ) |
|
|
private |
This routine delivers the content of an XML tag. It fills the content into the load data structure.
◆ endDocument()
| bool PMusrWizDefaultXMLParser::endDocument |
( |
| ) |
|
|
private |
Called at the end of the XML parse process.
◆ endElement()
| bool PMusrWizDefaultXMLParser::endElement |
( |
| ) |
|
|
private |
Routine called when the end XML tag is found. It is used to put the filtering tag to 'empty'. It also resets the fFunc flag in case the entry was a theory function.
◆ isValid()
| virtual bool PMusrWizDefaultXMLParser::isValid |
( |
| ) |
|
|
inlinevirtual |
Checks if the XML parsing was successful.
- Returns
- true if parsing succeeded, false otherwise.
◆ parse()
| bool PMusrWizDefaultXMLParser::parse |
( |
QIODevice * | device | ) |
|
|
private |
parse the musrWiz startup xml-file.
- Parameters
-
| device | QFile object of the musrWiz startup xml-file |
- Returns
- true on success, false otherwise
◆ startDocument()
| bool PMusrWizDefaultXMLParser::startDocument |
( |
| ) |
|
|
private |
Routine called at the beginning of the XML parsing process.
◆ startElement()
| bool PMusrWizDefaultXMLParser::startElement |
( |
| ) |
|
|
private |
Routine called when a new XML tag is found. Here it is used to set a tag for filtering afterwards the content.
◆ fAdmin
| PAdmin* PMusrWizDefaultXMLParser::fAdmin |
|
private |
a pointer to the main administration class object
◆ fDefault
default settings being parsed
◆ fKeyWord
key word tag to know how to handle the content
◆ fValid
| bool PMusrWizDefaultXMLParser::fValid |
|
private |
flag showing if XML read has been successful
◆ fXml
| QXmlStreamReader PMusrWizDefaultXMLParser::fXml |
|
private |
The documentation for this class was generated from the following files:
- /workspace/LMU/musrfit/src/musredit_qt6/musrWiz/PAdmin.h
- /workspace/LMU/musrfit/src/musredit_qt6/musrWiz/PAdmin.cpp