SIRF  3.4.0
envar.h
1 /*
2 SyneRBI Synergistic Image Reconstruction Framework (SIRF)
3 Copyright 2015 - 2017 Rutherford Appleton Laboratory STFC
4 
5 This is software developed for the Collaborative Computational
6 Project in Synergistic Reconstruction for Biomedical Imaging (formerly CCP PETMR)
7 (http://www.ccpsynerbi.ac.uk/).
8 
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 
19 */
20 
21 #ifndef GET_ENVIRONMENT_VARIABLES
22 #define GET_ENVIRONMENT_VARIABLES
23 
24 #include <string>
25 using std::string;
26 
27 #ifdef _MSC_VER
28 #if _MSC_VER >= 1900
29 using namespace System;
30 static string toStandardString(System::String^ var);
31 string EnvironmentVariable(const char* name);
32 #else
33 string EnvironmentVariable(const char* name);
34 #endif
35 #else
36 string EnvironmentVariable(const char* name);
37 #endif
38 
39 #endif