Wildmeshing Toolkit
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 
9 namespace wmtk::components {
10  namespace utils {
11  class PathResolver;
12  }
13 }
14 namespace wmtk::components::input {
15 
17 {
18 public:
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
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 
39 namespace nlohmann {
40 template <>
41 struct 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
void from_json(const nlohmann::json &j, RegularSpaceOptions &o)
void to_json(nlohmann::json &j, RegularSpaceOptions &o)
Definition: Accessor.hpp:6
nlohmann::json json
Definition: input.cpp:9