Computer Assisted Medical Intervention Tool Kit  version 5.2
Core.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2024 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef CAMITKCORE_H
27 #define CAMITKCORE_H
28 
29 
30 
31 // -- Core stuff
32 #include "CamiTKAPI.h"
33 #include "HistoryItem.h"
34 
35 // -- Qt stuff
36 #include <QStack>
37 
38 
39 
40 namespace camitk {
74 public:
75 
78 
84  static const QStringList getComponentDirectories();
85 
92  static const QStringList getActionDirectories();
93 
100  static const QStringList getViewerDirectories();
101 
114  static const QString getTestDataDir();
115 
129  static const QStringList getInstallDirectories(QString suffix, bool exitOnError = true);
130 
132  static const QString getConfig();
133 
135  static const QString getPaths();
136 
138  static const QString getGlobalInstallDir();
139 
141  static const QString getUserInstallDir();
142 
144  static const QString getCurrentWorkingDir();
145 
147  static const QString getBugReport();
148 
150 
155  static const bool isDebugBuild();
157 
158 
162  static const char* version;
164  static const char* shortVersion;
166  static const char* soVersion;
168  static const char* debugPostfix;
176  static const char* libDir;
178 
179 private:
184  static const QStringList getExtensionDirectories(QString extensionType);
185 };
186 
187 }
188 
189 #endif // CAMITKCORE_H
190 
#define CAMITK_API
Definition: CamiTKAPI.h:49
Core class specifies the basic static information for the CamiTK API.
Definition: Core.h:73
static const char * debugPostfix
debug postfix used on MSVC to distinguished between release and debug version
Definition: Core.h:168
static const char * soVersion
version used for so name
Definition: Core.h:166
static const char * libDir
library folder set depending on the compiler and environment choice (it could be lib/ or lib64/ on Li...
Definition: Core.h:176
static const char * shortVersion
short version string (all in lower case, without the patch number)
Definition: Core.h:164
static const char * version
Definition: Core.h:162
Definition: Action.cpp:36