NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkEnvironmentHelper.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkEnvironmentHelper_h
16 #define niftkEnvironmentHelper_h
17 
18 #include <NifTKConfigure.h>
20 
21 #include <string>
22 
23 namespace niftk
24 {
25 
26 #define NIFTK_DIR "NIFTK_DIR"
27 
28 #define USERS_HOME "HOME"
29 
30 #define WORKING_DIR "PWD"
31 
33 
35 
37 
38 // Note:
39 // Calling this function 'GetEnvironmentVariable' would cause linker error on Windows
40 // with VS2013, likely because of a kernel function with the same name.
42 
43 } // end namespace
44 
45 #endif
std::string GetEnvVar(const std::string &variableName)
Definition: niftkEnvironmentHelper.cxx:43
std::string GetWorkingDirectory()
Definition: niftkEnvironmentHelper.cxx:29
std::string GetNifTKHome()
Definition: niftkEnvironmentHelper.cxx:36
#define NIFTKCOMMON_WINEXPORT
Definition: niftkCommonWin32ExportHeader.h:28
std::string GetHomeDirectory()
Definition: niftkEnvironmentHelper.cxx:22
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194