VPTissue Reference Manual
InstallDirs.h
Go to the documentation of this file.
1 #ifndef UTIL_INSTALL_DIRS_H_INCLUDED
2 #define UTIL_INSTALL_DIRS_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include <string>
23 
24 namespace SimShell {
25 
29 class InstallDirs {
30 public:
32  static std::string GetDataDir();
33 
35  static std::string GetWorkspaceDir();
36 
38  static std::string GetRootDir();
39 
41  static std::string GetTestsDir();
42 
43 private:
45  static void Check();
46 
48  static void Initialize();
49 
51  static void CheckTests();
52 
54  static void InitializeTests();
55 
56 private:
57  static bool g_initialized;
58  static bool g_tests_initialized;
59 
60 private:
61  static std::string g_data_dir;
62  static std::string g_workspace_dir;
63  static std::string g_root_dir;
64  static std::string g_tests_dir;
65  static std::string g_tests_workspace_dir;
66 };
67 
68 } // namespace
69 
70 #endif // end-of-include-guard
static std::string GetDataDir()
Utility method: get name of the directory for data files.
static std::string GetRootDir()
Utility method: get application installation root directory.
Install directories.
Definition: InstallDirs.h:29
static std::string GetWorkspaceDir()
Utility method: get name of the directory for data files.
Namespace for generic graphical shell for simulators.
Definition: SimSession.h:32
static std::string GetTestsDir()
Utility method: get name of working directory for the tests.