CustusX  2023.01.05-dev+develop.0da12
An IGT application
ProbeXmlConfigParserMock.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef PROBEXMLCONFIGPARSERMOC_H_
13 #define PROBEXMLCONFIGPARSERMOC_H_
14 
15 #include "cxResourceExport.h"
16 
17 #include <ProbeXmlConfigParser.h>
18 
19 #include <QString>
20 
31 class cxResource_EXPORT ProbeXmlConfigParserMock : public ProbeXmlConfigParser
32 {
33 public:
34  ProbeXmlConfigParserMock(QString& pathToXml, bool provideRTSource = true);
35  virtual ~ProbeXmlConfigParserMock();
36  virtual QString getFileName();
37  virtual void removeConfig(QString scanner, QString probe, QString rtsource, QString configId);
39  virtual QStringList getScannerList();
40  virtual QStringList getProbeList(QString scanner);
41  virtual QStringList getRtSourceList(QString scanner, QString probe);
42  virtual QStringList getConfigIdList(QString scanner, QString probe, QString rtSource);
43  virtual ProbeXmlConfigParser::Configuration getConfiguration(QString scanner, QString probe, QString rtsource, QString configId);
44 private:
45  QString mFileName;
46  bool mProvideRTSource;
47 };
48 
49 #endif /* PROBEXMLCONFIGPARSERMOC_H_ */
Moc implementation of abstract interface ProbeXmlConfigParser All function return dummy values...
< 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
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
virtual QString getFileName()=0
virtual void saveCurrentConfig(Configuration config)=0