/workspaces/astro/sol3-sdk/cpp/sol3/cpp/filesystem.h Source File

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/cpp/filesystem.h Source File
Space-ng SDK
filesystem.h
Go to the documentation of this file.
1 // Copyright (c) Space-ng, inc. All rights reserved.
2 
3 #pragma once
4 
5 // NOTE: on the voxl, we have gcc 7 and filesystem isn't fully supported.
6 // please prefer this header and to use sol3::core::fs instead
7 
8 #ifdef PLATFORM_QRB5165
9 #include <experimental/filesystem>
10 #else
11 #include <filesystem>
12 #endif
13 
14 namespace sol3::cpp {
15 
16 #ifdef PLATFORM_QRB5165
17 namespace fs = std::experimental::filesystem;
18 #else
19 namespace fs = std::filesystem;
20 #endif
21 
22 } // namespace sol3::cpp
23 
24 #ifdef PLATFORM_QRB5165
25 namespace std::experimental::filesystem {
26 #else
27 namespace std::filesystem {
28 #endif
29 
30 // NOLINTNEXTLINE(readability-identifier-naming)
31 inline std::string format_as(path const& path) { return path.string(); }
32 }
Definition: enum.h:8
Definition: filesystem.h:27
std::string format_as(path const &path)
Definition: filesystem.h:31