12 #ifndef CXTOOLCONFIGURATIONPARSER_H_ 13 #define CXTOOLCONFIGURATIONPARSER_H_ 15 #include "cxResourceExport.h" 21 #include <QDomDocument> 46 mAbsoluteToolFilePath(
""),
47 mOpenIGTLinkTransformId(
""),
48 mOpenIGTLinkImageId(
""),
50 mApplyRefToTool(false)
70 QString getApplicationapplication();
71 std::vector<ToolFileParser::TrackerInternalStructure> getTrackers();
72 std::vector<QString> getAbsoluteToolFilePaths();
73 QString getAbsoluteReferenceFilePath();
74 std::vector<ConfigurationFileParser::ToolStructure> getToolListWithMetaInformation();
76 static QString getTemplatesAbsoluteFilePath();
79 QString getTrackingSystemImplementation();
80 bool getApplyRefToTools();
82 void setConfigDocument(QString configAbsoluteFilePath);
83 bool isConfigFileValid();
84 QString getAbsoluteToolFilePath(QDomElement toolfileelement);
85 QString findXmlFileWithDirNameInPath(QString path);
86 QString searchForExistingToolFilePath(QString relativeToolFilePath);
87 static QString convertToRelativeToolFilePath(QString configFilename, QString absoluteToolFilePath);
88 static QString getToolPathFromRoot(QString root);
89 static void createToolFileNode(ToolStructureVector::iterator iter, QDomElement &toolFileNode,
ToolFileParser &toolparser);
91 QString mConfigurationFilePath;
92 QString mLoggingFolder;
94 QDomDocument mConfigureDoc;
TrackersAndToolsMap mTrackersAndTools
the trackers and tools (relative path) that should be used in the config
std::map< TRACKING_SYSTEM, ToolStructureVector > TrackersAndToolsMap
QString mFileName
absolute path and filename for the new config file
std::vector< ToolStructure > ToolStructureVector
Class for reading the files defining a CustusX tool.
QString mTrackingSystemImplementation
QString mClinical_app
the clinical application this config is made for
Namespace for all CustusX production code.