iRoCS Toolbox  1.1.0
BaseEnvironment.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * This file is part of the XuV Tools suite. see http://www.xuvtools.org
4  * for more information
5  *
6  * Copyright (C) 2015 Mario Emmenlauer
7  *
8  * Image Analysis Lab, University of Freiburg, Germany
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program 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 General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software Foundation,
22  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  **************************************************************************/
25 
26 #ifndef BASEENVIRONMENT_HH
27 #define BASEENVIRONMENT_HH BASEENVIRONMENT_HH
28 
29 #ifdef HAVE_CONFIG_H
30 #include <config.hh>
31 #endif
32 
33 #include <string>
34 
35 #ifdef _WIN32
36  #if defined(BaseFunctions_EXPORTS)
37  #define BASEFUNCTIONSDLL_API __declspec(dllexport)
38  #elif defined(BaseFunctions_USE_DLL)
39  #define BASEFUNCTIONSDLL_API __declspec(dllimport)
40  #else
41  #define BASEFUNCTIONSDLL_API
42  #endif
43 #else
44  #define BASEFUNCTIONSDLL_API
45 #endif
46 
48 public:
55  static std::string UserHomeDirectory();
56 
64  static std::string UserTempDirectory();
65 
74  static std::string UserAppDataDirectory();
75 
81  static std::string HostName();
82 
83 };
84 
85 #endif
#define BASEFUNCTIONSDLL_API