|
23 | 23 |
|
24 | 24 | #pragma once
|
25 | 25 |
|
26 |
| -#include <map> // for map<> |
27 |
| -#include <memory> // for shared_ptr<> |
28 |
| -#include <set> // for set<> |
29 |
| -#include <string> // for string |
30 |
| -#include <utility> // for move |
31 |
| -#include <vector> // for vector<> |
32 |
| -#include <optional> // for optional<> |
33 |
| - |
34 |
| -#include <boost/filesystem/path.hpp> // for path |
35 |
| -#include <fable/schema/boost_optional.hpp> // for Optional<> |
36 |
| -#include <fable/schema/boost_path.hpp> // for Path |
| 26 | +#include <filesystem> // for filesystem::path |
| 27 | +#include <map> // for map<> |
| 28 | +#include <memory> // for shared_ptr<> |
| 29 | +#include <optional> // for optional<> |
| 30 | +#include <set> // for set<> |
| 31 | +#include <string> // for string |
| 32 | +#include <utility> // for move |
| 33 | +#include <vector> // for vector<> |
| 34 | + |
37 | 35 | #include <fable/schema/custom.hpp> // for CustomDeserializer
|
38 | 36 | #include <fable/schema/factory.hpp> // for Factory
|
39 | 37 |
|
@@ -83,7 +81,7 @@ inline auto id_path_prototype(std::string desc = "") {
|
83 | 81 | * IncludeConf is a relative or absolute filepath that should be included in
|
84 | 82 | * the stack configuration.
|
85 | 83 | */
|
86 |
| -using IncludeConf = boost::filesystem::path; |
| 84 | +using IncludeConf = std::filesystem::path; |
87 | 85 | using IncludeSchema = decltype(schema::make_schema(static_cast<IncludeConf*>(nullptr), ""));
|
88 | 86 | using IncludesSchema = schema::Vector<IncludeConf, IncludeSchema>;
|
89 | 87 |
|
@@ -202,7 +200,7 @@ struct ServerConf : public Confable {
|
202 | 200 | */
|
203 | 201 | struct PluginConf : public PersistentConfable {
|
204 | 202 | /** Filesystem path to file or directory. */
|
205 |
| - boost::filesystem::path plugin_path{}; |
| 203 | + std::filesystem::path plugin_path{}; |
206 | 204 |
|
207 | 205 | /** Name to give plugin if path is to a single file. */
|
208 | 206 | std::optional<std::string> plugin_name{};
|
@@ -309,14 +307,14 @@ struct EngineConf : public Confable {
|
309 | 307 | bool triggers_ignore_source{false};
|
310 | 308 |
|
311 | 309 | // Output:
|
312 |
| - std::optional<boost::filesystem::path> registry_path{CLOE_DATA_HOME "/registry"}; |
313 |
| - std::optional<boost::filesystem::path> output_path{"${CLOE_SIMULATION_UUID}"}; |
314 |
| - std::optional<boost::filesystem::path> output_file_config{"config.json"}; |
315 |
| - std::optional<boost::filesystem::path> output_file_result{"result.json"}; |
316 |
| - std::optional<boost::filesystem::path> output_file_triggers{"triggers.json"}; |
317 |
| - std::optional<boost::filesystem::path> output_file_signals{"signals.json"}; |
318 |
| - std::optional<boost::filesystem::path> output_file_signals_autocompletion; |
319 |
| - std::optional<boost::filesystem::path> output_file_data_stream; |
| 310 | + std::optional<std::filesystem::path> registry_path{CLOE_DATA_HOME "/registry"}; |
| 311 | + std::optional<std::filesystem::path> output_path{"${CLOE_SIMULATION_UUID}"}; |
| 312 | + std::optional<std::filesystem::path> output_file_config{"config.json"}; |
| 313 | + std::optional<std::filesystem::path> output_file_result{"result.json"}; |
| 314 | + std::optional<std::filesystem::path> output_file_triggers{"triggers.json"}; |
| 315 | + std::optional<std::filesystem::path> output_file_signals{"signals.json"}; |
| 316 | + std::optional<std::filesystem::path> output_file_signals_autocompletion; |
| 317 | + std::optional<std::filesystem::path> output_file_data_stream; |
320 | 318 | bool output_clobber_files{true};
|
321 | 319 |
|
322 | 320 | /**
|
@@ -390,8 +388,8 @@ struct EngineConf : public Confable {
|
390 | 388 | CONFABLE_SCHEMA(EngineConf) {
|
391 | 389 | // clang-format off
|
392 | 390 | using namespace schema; // NOLINT(build/namespaces)
|
393 |
| - auto dir_proto = []() { return make_prototype<boost::filesystem::path>().not_file(); }; |
394 |
| - auto file_proto = []() { return make_prototype<boost::filesystem::path>().not_dir().resolve(false); }; |
| 391 | + auto dir_proto = []() { return make_prototype<std::filesystem::path>().not_file(); }; |
| 392 | + auto file_proto = []() { return make_prototype<std::filesystem::path>().not_dir().resolve(false); }; |
395 | 393 | return Struct{
|
396 | 394 | {"ignore", make_schema(&ignore_sections, "JSON pointers to sections that should be ignored").extend(true)},
|
397 | 395 | {"security", Struct{
|
|
0 commit comments