My Project
FileSystem.hpp
1 /*
2  Copyright 2019 Equinor ASA
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef OPM_FILESYSTEM_HPP
20 #define OPM_FILESYSTEM_HPP
21 
22 #if __cplusplus < 201703L || \
23  (defined(__GNUC__) && __GNUC__ < 8 && !defined(__clang__))
24 #include <experimental/filesystem>
25 #else
26 #include <filesystem>
27 #endif
28 
29 #include <string>
30 
31 
32 namespace Opm
33 {
34 #if __cplusplus < 201703L || \
35  (defined(__GNUC__) && __GNUC__ < 8 && !defined(__clang__))
36  namespace filesystem = std::experimental::filesystem;
37  filesystem::path proximate(const filesystem::path& p,
38  const filesystem::path& base = filesystem::current_path());
39 #else
40  namespace filesystem = std::filesystem;
41  using filesystem::proximate;
42 #endif
43 
44  // A poor man's filesystem::unique_path
45  std::string unique_path(const std::string& input);
46 
47 } // end namespace Opm
48 
49 
50 #endif // OPM_FILESYSTEM_HPP
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29