33 #ifndef CXTOOLCONFIGURATIONPARSER_H_
34 #define CXTOOLCONFIGURATIONPARSER_H_
36 #include "cxResourceExport.h"
42 #include <QDomDocument>
72 QString getApplicationapplication();
73 std::vector<ToolFileParser::TrackerInternalStructure> getTrackers();
74 std::vector<QString> getAbsoluteToolFilePaths();
75 QString getAbsoluteReferenceFilePath();
77 static QString getTemplatesAbsoluteFilePath();
81 void setConfigDocument(QString configAbsoluteFilePath);
82 bool isConfigFileValid();
83 QString getAbsoluteToolFilePath(QDomElement toolfileelement);
84 QString findXmlFileWithDirNameInPath(QString path);
85 QString searchForExistingToolFilePath(QString relativeToolFilePath);
86 static QString convertToRelativeToolFilePath(QString configFilename, QString absoluteToolFilePath);
87 static QString getToolPathFromRoot(QString root);
89 QString mConfigurationFilePath;
90 QString mLoggingFolder;
92 QDomDocument mConfigureDoc;
93 const QString mConfigTag, mConfigTrackerTag, mConfigTrackerToolFile;
94 const QString mTypeAttribute, mClinicalAppAttribute, mReferenceAttribute;
TrackersAndToolsMap mTrackersAndTools
the trackers and tools (relative path) that should be used in the config
std::vector< ToolFileAndReference > ToolFilesAndReferenceVector
std::map< TRACKING_SYSTEM, ToolFilesAndReferenceVector > TrackersAndToolsMap
QString mFileName
absolute path and filename for the new config file
Class for reading the files defining a CustusX tool.
std::pair< QString, bool > ToolFileAndReference
QString mClinical_app
the clinical application this config is made for