11 #ifndef CXDATALOCATIONS_H_ 12 #define CXDATALOCATIONS_H_ 14 #include "cxResourceExport.h" 18 #include "boost/shared_ptr.hpp" 34 static QString getBundlePath();
35 static QString getRootConfigPath();
36 static QStringList getRootConfigPaths();
38 static QString getTestDataPath();
39 static QString getLargeTestDataPath();
40 static QString getExistingTestData(QString pathRelativeToTestDataRoot, QString filename=
"");
42 static QString getDocPath();
43 static QString getPersistentWritablePath();
44 static void deletePersistentWritablePath();
45 static QString getCachePath();
46 static QStringList getDefaultPluginsPath();
48 static void setTestMode();
49 static QString findExecutableInStandardLocations(QString filename);
51 static QStringList appendStringToAllElements(QStringList root, QString suffix);
53 static QString findConfigFolder(QString pathRelativeToConfigRoot, QString alternativeAbsolutePath =
"");
54 static QString findConfigFilePath(QString fileName, QString pathRelativeToConfigRoot, QString alternativeAbsolutePath =
"");
55 static QString findConfigPath(QString fileName, QString pathRelativeToConfigRoot, QString alternativeAbsolutePath =
"");
57 static void setWebsiteURL(QString websiteUrl);
58 static QString getWebsiteURL();
59 static QString getUploadsUrl();
60 static QString getWebsiteUserDocumentationURL();
62 static bool isRunFromBuildFolder();
63 static bool isTestMode();
66 static bool mTestMode;
67 static bool mRunFromBuildFolder;
68 static bool mBuildFolderChecked;
69 static QString mWebsiteUrl;
70 static QString readTestDataPathFromFile(QString filename);
71 static QString checkExecutableExist(QString path, QString filename);
Namespace for all CustusX production code.