1 #ifndef _OMS_FILESYSTEM_H_ 3 #if !defined(WITHOUT_FS) && defined(__has_include) 4 #if __has_include(<filesystem>) 6 #if __cpp_lib_filesystem >= 201703 7 namespace filesystem = std::filesystem;
11 #if !defined(OMC_STD_FS) && __has_include(<experimental/filesystem>) 12 #include <experimental/filesystem> 13 namespace filesystem = std::experimental::filesystem::v1;
20 return filesystem::temp_directory_path();
22 static inline filesystem::path
oms_canonical(filesystem::path p) {
23 return filesystem::canonical(p);
28 #include <boost/version.hpp> 31 #if (BOOST_VERSION < 105700) 32 #define BOOST_NO_CXX11_SCOPED_ENUMS 33 #endif // #if (BOOST_VERSION < 105700) 34 #include <boost/filesystem.hpp> 35 #if (BOOST_VERSION < 105700) 36 #undef BOOST_NO_CXX11_SCOPED_ENUMS 37 #endif // #if (BOOST_VERSION < 105700) 39 #if (BOOST_VERSION >= 105300) 40 #include <boost/lockfree/queue.hpp> 43 #include <boost/filesystem.hpp> 44 namespace filesystem = boost::filesystem;
46 #if (BOOST_VERSION >= 104600) // no temp_directory_path in boost < 1.46 48 return filesystem::temp_directory_path();
50 static inline filesystem::path
oms_canonical(filesystem::path p) {
51 return filesystem::canonical(p);
60 void oms_copy_file(
const filesystem::path &from,
const filesystem::path &to);
filesystem::path oms_canonical(filesystem::path p)
Definition: OMSFileSystem.cpp:80
filesystem::path oms_unique_path(const std::string &prefix)
Definition: OMSFileSystem.cpp:87
void oms_copy_file(const filesystem::path &from, const filesystem::path &to)
Definition: OMSFileSystem.cpp:100
filesystem::path oms_temp_directory_path(void)
Definition: OMSFileSystem.cpp:53