Computer Assited Medical Intervention Tool Kit  version 4.1
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-2018 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
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 {
53 class CAMITK_API Core {
54 public:
55 
58 
64  static const QStringList getComponentDirectories();
65 
72  static const QStringList getActionDirectories();
73 
86  static const QString getTestDataDir();
87 
94  static const QStringList getInstallDirectories(QString suffix);
95 
97  static const QString getConfig();
98 
100  static const QString getPaths();
101 
103  static const QString getGlobalInstallDir();
104 
106  static const QString getUserInstallDir();
107 
109  static const QString getCurrentWorkingDir();
110 
112  static const QString getBugReport();
113 
115 
120  static const bool isDebugBuild();
122 
123 
127  static const char* version;
129  static const char* shortVersion;
131  static const char* soVersion;
133  static const char* debugPostfix;
135 
136 };
137 
138 }
139 
140 #endif // CAMITKCORE_H
141 
camitk::Core::shortVersion
static const char * shortVersion
short version string (all in lower case, without the patch number)
Definition: Core.h:175
camitk::Core::getGlobalInstallDir
static const QString getGlobalInstallDir()
get the CAMITK_DIR (where camitk-config is installed)
Definition: Core.cpp:312
camitk::Core::getConfig
static const QString getConfig()
get more information about installation, etc...
Definition: Core.cpp:142
CamiTKVersion.h
camitk::Core::getPaths
static const QString getPaths()
get all important paths
Definition: Core.cpp:88
CamiTKAPI.h
camitk::Application::getSettings
static QSettings & getSettings()
Get the Core wide settings.
Definition: Application.cpp:300
a
#define a
camitk::ComponentExtension
This class describes what is a generic Component extension. To add a ComponentExtension to CamiTK cor...
Definition: ComponentExtension.h:80
Action.h
camitk::Core::soVersion
static const char * soVersion
version used for so name
Definition: Core.h:177
camitk::Core::getBugReport
static const QString getBugReport()
get a well formed bug report with all necessary information
Definition: Core.cpp:364
camitk::Core::getCurrentWorkingDir
static const QString getCurrentWorkingDir()
get the current working directory (during dev, this should be the build directory,...
Definition: Core.cpp:359
camitk::Core::getTestDataDir
static const QString getTestDataDir()
Get a valid camitk test data directory name.
Definition: Core.cpp:298
camitk::ComponentExtension::getFileExtensions
virtual QStringList getFileExtensions() const =0
get the list of managed extensions (each file with an extension in the list can be loaded by this Com...
camitk::Core::getUserInstallDir
static const QString getUserInstallDir()
get the user config directory (this is the local installation directory)
Definition: Core.cpp:353
camitk::Core::isDebugBuild
static const bool isDebugBuild()
Definition: Core.cpp:388
camitk::ExtensionManager::getComponentExtensionsList
static const QList< ComponentExtension * > getComponentExtensionsList()
Get the list of registered ComponentExtension.
Definition: ExtensionManager.cpp:351
camitk::Core::getComponentDirectories
static const QStringList getComponentDirectories()
get all the component directories.
Definition: Core.cpp:293
camitk::ExtensionManager::getDataDirectoryComponentsList
static const QList< ComponentExtension * > getDataDirectoryComponentsList()
Get the list of registered ComponentExtension working on directory.
Definition: ExtensionManager.cpp:359
camitk::Application::getName
static QString getName()
get the application name
Definition: Application.cpp:201
HistoryItem.h
camitk::ExtensionManager::getInstallationString
static QString getInstallationString(QString file, const QString &globalInstallDir, const QString &userInstallDir, const QString &currentWorkingDir)
Returns a three char string that corresponds to the installation directory of a given shared library.
Definition: ExtensionManager.cpp:282
camitk::Core::version
static const char * version
Definition: Core.h:173
camitk::ComponentExtension::getLocation
QString getLocation() const
get the file path (location of the .dll/.so/.dylib) of this plugin
Definition: ComponentExtension.h:163
Core.h
camitk::ExtensionManager::getActionExtensionsList
static const QList< ActionExtension * > getActionExtensionsList()
Get the list of registered ActionExtension.
Definition: ExtensionManager.cpp:385
ExtensionManager.h
camitk::Core::getActionDirectories
static const QStringList getActionDirectories()
get all the action directories.
Definition: Core.cpp:288
camitk::ComponentExtension::getName
virtual QString getName() const =0
camitk::Core::getInstallDirectories
static const QStringList getInstallDirectories(QString suffix)
get all installation directories, suffixed by the given word.
Definition: Core.cpp:263
Application.h
CAMITK_API
#define CAMITK_API
Definition: CamiTKAPI.h:49
camitk
Definition: Action.cpp:36