![]() |
Computer Assited Medical Intervention Tool Kit
|
Core class specifies the basic static information for the CamiTK API. More...
#include <Core.h>
Static Public Member Functions | |
runtime directory information | |
get the camitk component extension directory name
| |
static const QString | getComponentDir () |
static const QString | getActionDir () |
get the camitk action directory name More... | |
static const QString | getModuleDir (const QString &subpath=QString()) |
get the camitk module extension directory name More... | |
static const QString | getTestDataDir () |
get the camitk test data directory name More... | |
static const QString | getCoreLibDir () |
get the camitk core lib directory name (where the camitkcore dll/shared/dynamic lib is) More... | |
static const QString | getConfig () |
get more information about installation, etc... More... | |
Static Public Attributes | |
miscallaneous utility method or variables | |
complete version string | |
static const char * | version = "CamiTK 3.0.7" |
static const char * | shortVersion = "camitk-3.0" |
short version string (all in lower case, without the patch number) More... | |
static const char * | installDir = "/usr" |
fall-back install directory (if the autodetection did not work...) More... | |
static const char * | soVersion = "3" |
version used for so name More... | |
Static Private Member Functions | |
static bool | checkCoreLibDir (QString dir) |
static const QString | getBinDirName () |
return the name of the bin directory More... | |
static const QString | getRootDir () |
get the camitk root directory name (it is either the build dir or the installation directory) More... | |
static const bool | hasBinaryVersionSubdir () |
does this plateform puts all dll/so/dylib in a CamiTK::shortVersion directory More... | |
static const QString | hasBuildTypeDirectory () |
check if plateform has debug/release subdirs More... | |
static const bool | hasMacOSDirectory () |
check if on MacOS (TODO test this!) More... | |
static const bool | isInstalled () |
check if installed More... | |
static const QString | sharedDirectory () |
name of main directory where the shared lib (dll, so or dylib) can be found It is "bin" on windows, "lib" on unix (unless isInstalled() is true, then it is still in bin) More... | |
Static Private Attributes | |
static QString | binDirName |
name of the bin directory (can be "bin" or "binDebug" for installed debug version!) More... | |
Core class specifies the basic static information for the CamiTK API.
|
staticprivate |
References soVersion.
Referenced by getCoreLibDir(), and getRootDir().
|
static |
get the camitk action directory name
References CAMITK_ERROR, getRootDir(), hasBinaryVersionSubdir(), hasBuildTypeDirectory(), sharedDirectory(), and shortVersion.
Referenced by camitk::ExtensionManager::autoloadActionExtensions(), getConfig(), main(), and camitk::SettingsDialog::on_addActionExtensionButton_released().
|
staticprivate |
return the name of the bin directory
|
static |
References CAMITK_ERROR, getRootDir(), hasBinaryVersionSubdir(), hasBuildTypeDirectory(), sharedDirectory(), and shortVersion.
Referenced by camitk::ExtensionManager::autoloadComponentExtensions(), getConfig(), main(), camitk::SettingsDialog::on_addComponentExtensionButton_released(), camitk::Application::open(), camitk::Application::openDirectory(), and camitk::Application::save().
|
static |
get more information about installation, etc...
References getActionDir(), camitk::ExtensionManager::getActionExtensions(), camitk::ActionExtension::getActions(), getComponentDir(), camitk::ExtensionManager::getComponentExtensions(), getCoreLibDir(), camitk::ActionExtension::getDescription(), camitk::ComponentExtension::getDescription(), camitk::Action::getDescription(), camitk::ComponentExtension::getFileExtensions(), camitk::ActionExtension::getName(), camitk::ComponentExtension::getName(), camitk::Action::getName(), getRootDir(), getTestDataDir(), hasBinaryVersionSubdir(), hasBuildTypeDirectory(), hasMacOSDirectory(), installDir, isInstalled(), sharedDirectory(), shortVersion, soVersion, and version.
Referenced by main().
|
static |
get the camitk core lib directory name (where the camitkcore dll/shared/dynamic lib is)
References checkCoreLibDir(), getRootDir(), hasBuildTypeDirectory(), and sharedDirectory().
Referenced by camitk::ExtensionManager::autoloadComponentExtensions(), getConfig(), and main().
|
static |
get the camitk module extension directory name
subpath | name of the module type (and subdirectory) to get (this simplifies getting the subdir name on plateform with hasBuildTypeDirectory() |
References CAMITK_INFO, getRootDir(), hasBinaryVersionSubdir(), hasBuildTypeDirectory(), sharedDirectory(), and shortVersion.
|
staticprivate |
get the camitk root directory name (it is either the build dir or the installation directory)
References binDirName, CAMITK_ERROR, checkCoreLibDir(), hasBuildTypeDirectory(), hasMacOSDirectory(), and installDir.
Referenced by getActionDir(), getComponentDir(), getConfig(), getCoreLibDir(), getModuleDir(), getTestDataDir(), and isInstalled().
|
static |
get the camitk test data directory name
References CAMITK_ERROR, getRootDir(), hasBinaryVersionSubdir(), and shortVersion.
Referenced by camitk::Application::Application(), ExtensionGenerator::generateCMakeLists(), getConfig(), and main().
|
staticprivate |
does this plateform puts all dll/so/dylib in a CamiTK::shortVersion directory
References isInstalled().
Referenced by getActionDir(), getComponentDir(), getConfig(), getModuleDir(), and getTestDataDir().
|
staticprivate |
check if plateform has debug/release subdirs
Referenced by getActionDir(), getComponentDir(), getConfig(), getCoreLibDir(), getModuleDir(), and getRootDir().
|
staticprivate |
check if on MacOS (TODO test this!)
Referenced by getConfig(), and getRootDir().
|
staticprivate |
check if installed
References getRootDir(), and installDir.
Referenced by getConfig(), hasBinaryVersionSubdir(), and sharedDirectory().
|
staticprivate |
name of main directory where the shared lib (dll, so or dylib) can be found It is "bin" on windows, "lib" on unix (unless isInstalled() is true, then it is still in bin)
References binDirName, and isInstalled().
Referenced by getActionDir(), getComponentDir(), getConfig(), getCoreLibDir(), and getModuleDir().
|
staticprivate |
name of the bin directory (can be "bin" or "binDebug" for installed debug version!)
Referenced by getRootDir(), and sharedDirectory().
|
static |
fall-back install directory (if the autodetection did not work...)
Referenced by getConfig(), getRootDir(), isInstalled(), and main().
|
static |
short version string (all in lower case, without the patch number)
Referenced by getActionDir(), getComponentDir(), getConfig(), getModuleDir(), and getTestDataDir().
|
static |
version used for so name
Referenced by camitk::ExtensionManager::autoloadActionExtensions(), camitk::ExtensionManager::autoloadComponentExtensions(), checkCoreLibDir(), and getConfig().
|
static |