Wildmeshing Toolkit
Loading...
Searching...
No Matches
InputOptions.hpp
Go to the documentation of this file.
1#pragma once
2
3
4#include <filesystem>
5#include <nlohmann/json.hpp>
6#include <optional>
7#include <vector>
8
9namespace wmtk::components {
10 namespace utils {
11 class PathResolver;
12 }
13}
15
17{
18public:
21 std::filesystem::path file;
22 std::optional<std::vector<std::vector<std::string>>> imported_attributes;
23
24
25 // either you can have a name spec in json or you can have it in a file
26 nlohmann::json name_spec;
27 std::optional<std::filesystem::path> name_spec_file;
28
29 bool old_mode = false;
30 bool ignore_z_if_zero = false;
31
32 bool operator==(const InputOptions& o) const;
33
34};
35
36
37} // namespace wmtk::components::input
38
39namespace nlohmann {
40template <>
41struct adl_serializer<wmtk::components::input::InputOptions>
42{
44 static void to_json(json& j, const Type& v);
45 static void from_json(const json& j, Type& v);
46};
47} // namespace nlohmann
std::optional< std::vector< std::vector< std::string > > > imported_attributes
bool operator==(const InputOptions &o) const
std::optional< std::filesystem::path > name_spec_file
nlohmann::json json
Definition input.cpp:9