CustusX
20.03-rc1
An IGT application
|
Implementation of abstract interface ProbeXmlConfigParser Interface to ProbeCalibConfigs.xml. More...
#include <ProbeXmlConfigParserImpl.h>
Public Member Functions | |
ProbeXmlConfigParserImpl (QString &pathToXml) | |
opens the file and reads it onto the QDomDocument More... | |
virtual | ~ProbeXmlConfigParserImpl () |
virtual QString | getFileName () |
virtual void | removeConfig (QString scanner, QString probe, QString rtsource, QString configId) |
virtual void | saveCurrentConfig (Configuration config) |
virtual QStringList | getScannerList () |
get a list of all scanner in the xml More... | |
virtual QStringList | getProbeList (QString scanner) |
get a list of all probes for that scanner More... | |
virtual QStringList | getRtSourceList (QString scanner, QString probe) |
get a list of rt sources for that scanner/probe combo More... | |
virtual QStringList | getConfigIdList (QString scanner, QString probe, QString rtSource) |
get a list of config ids for that scanner/probe/rsource combo More... | |
virtual Configuration | getConfiguration (QString scanner, QString probe, QString rtsource, QString configId) |
get a easy-to-work-with struct of a specific config More... | |
Protected Member Functions | |
QList< QDomNode > | getScannerNodes (QString scanner="ALL") |
get a list of ALL scanner nodes or just the one you are looking for More... | |
QList< QDomNode > | getProbeNodes (QString scanner, QString probe="ALL") |
get a list of ALL probenodes for that scanner, or just the one you are looking for More... | |
QList< QDomNode > | getRTSourceNodes (QString scanner, QString probe, QString rtSource="ALL") |
get a list of ALL rtsourcenodes for that scanner/probe combo, or just the one you are looking for More... | |
QList< QDomNode > | getConfigNodes (QString scanner, QString probe, QString rtsource, QString config="ALL") |
get a list of ALL confignodes for that scanner/probe/rtsource combo, or just the one you are looking for More... | |
QList< QDomNode > | nodeListToListOfNodes (QDomNodeList list) |
converts a QDomNodeList to a QList<QDomNode> More... | |
void | addTextElement (QDomElement parent, QString element, QString text) |
Protected Attributes | |
cx::XmlOptionFile | mFile |
Additional Inherited Members | |
Public Types inherited from ProbeXmlConfigParser | |
typedef std::pair< double, double > | ColRowPair |
Implementation of abstract interface ProbeXmlConfigParser Interface to ProbeCalibConfigs.xml.
Definition at line 29 of file ProbeXmlConfigParserImpl.h.
ProbeXmlConfigParserImpl::ProbeXmlConfigParserImpl | ( | QString & | pathToXml | ) |
opens the file and reads it onto the QDomDocument
Definition at line 24 of file ProbeXmlConfigParserImpl.cpp.
|
virtual |
Definition at line 34 of file ProbeXmlConfigParserImpl.cpp.
|
protected |
Add a trivial QDomElement with a QTextElement, i.e. <elem> text </elem> .
Definition at line 409 of file ProbeXmlConfigParserImpl.cpp.
|
virtual |
get a list of config ids for that scanner/probe/rsource combo
Implements ProbeXmlConfigParser.
Definition at line 78 of file ProbeXmlConfigParserImpl.cpp.
|
protected |
get a list of ALL confignodes for that scanner/probe/rtsource combo, or just the one you are looking for
Definition at line 343 of file ProbeXmlConfigParserImpl.cpp.
|
virtual |
get a easy-to-work-with struct of a specific config
< get a list of all probes for that scanner
Implements ProbeXmlConfigParser.
Definition at line 160 of file ProbeXmlConfigParserImpl.cpp.
|
virtual |
Implements ProbeXmlConfigParser.
Definition at line 49 of file ProbeXmlConfigParserImpl.cpp.
|
virtual |
get a list of all probes for that scanner
Implements ProbeXmlConfigParser.
Definition at line 54 of file ProbeXmlConfigParserImpl.cpp.
|
protected |
get a list of ALL probenodes for that scanner, or just the one you are looking for
Definition at line 283 of file ProbeXmlConfigParserImpl.cpp.
|
virtual |
get a list of rt sources for that scanner/probe combo
Implements ProbeXmlConfigParser.
Definition at line 66 of file ProbeXmlConfigParserImpl.cpp.
|
protected |
get a list of ALL rtsourcenodes for that scanner/probe combo, or just the one you are looking for
Definition at line 313 of file ProbeXmlConfigParserImpl.cpp.
|
virtual |
get a list of all scanner in the xml
Implements ProbeXmlConfigParser.
Definition at line 37 of file ProbeXmlConfigParserImpl.cpp.
|
protected |
get a list of ALL scanner nodes or just the one you are looking for
Definition at line 263 of file ProbeXmlConfigParserImpl.cpp.
|
protected |
converts a QDomNodeList to a QList<QDomNode>
Definition at line 373 of file ProbeXmlConfigParserImpl.cpp.
|
virtual |
Implements ProbeXmlConfigParser.
Definition at line 383 of file ProbeXmlConfigParserImpl.cpp.
|
virtual |
Implements ProbeXmlConfigParser.
Definition at line 420 of file ProbeXmlConfigParserImpl.cpp.
|
protected |
Definition at line 50 of file ProbeXmlConfigParserImpl.h.