33 #ifndef PROBEXMLCONFIGPARSERIMPL_H_
34 #define PROBEXMLCONFIGPARSERIMPL_H_
36 #include "cxResourceExport.h"
56 virtual void removeConfig(QString scanner, QString probe, QString rtsource, QString configId);
61 virtual QStringList
getConfigIdList(QString scanner, QString probe, QString rtSource);
64 QList<QDomNode> getScannerNodes(QString scanner =
"ALL");
65 QList<QDomNode> getProbeNodes(QString scanner, QString probe =
"ALL");
66 QList<QDomNode> getRTSourceNodes(QString scanner, QString probe, QString rtSource=
"ALL");
67 QList<QDomNode> getConfigNodes(QString scanner, QString probe, QString rtsource, QString config=
"ALL");
68 QList<QDomNode> nodeListToListOfNodes(QDomNodeList list);
69 void addTextElement(QDomElement parent, QString element, QString text);
102 return angle(rhs) < angle(lhs);
107 double pi = atan(1.0)*4;
108 return fmod( ( ( atan2((
double)(pair1.first - mCenter.first), (
double)(pair1.second - mCenter.second)) ) + 3*pi/4) , 2*pi);
< a easy-to-work-with struct for a specific xml configuration
virtual QStringList getRtSourceList(QString scanner, QString probe)=0
get a list of rt sources for that scanner/probe combo
virtual QStringList getScannerList()=0
get a list of all scanner in the xml
virtual void removeConfig(QString scanner, QString probe, QString rtsource, QString configId)=0
virtual QStringList getProbeList(QString scanner)=0
get a list of all probes for that scanner
virtual QStringList getConfigIdList(QString scanner, QString probe, QString rtSource)=0
get a list of config ids for that scanner/probe/rsource combo
ProbeXmlConfigParser::ColRowPair mCenter
Class that works as a interface to a ProbeCalibConfigs.xml.
virtual Configuration getConfiguration(QString scanner, QString probe, QString rtsource, QString configId)=0
get a easy-to-work-with struct of a specific config
Implementation of abstract interface ProbeXmlConfigParser Interface to ProbeCalibConfigs.xml.
Angular_less(ProbeXmlConfigParser::ColRowPair center)
std::pair< double, double > ColRowPair
int angle(ProbeXmlConfigParser::ColRowPair pair1)
bool operator()(const ProbeXmlConfigParser::ColRowPair &rhs, const ProbeXmlConfigParser::ColRowPair &lhs)
virtual QString getFileName()=0
Helper class for xml files used to store ssc/cx data.
virtual void saveCurrentConfig(Configuration config)=0