Wildmeshing Toolkit
OutputOptions.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <filesystem>
3 #include <nlohmann/json.hpp>
6 
7 
8 namespace wmtk::components::output {
10 {
11  std::filesystem::path file;
12 
13  std::string type;
14 
15  // some formats (?msh?) have a dedicated slot for positions
16  std::variant<wmtk::attribute::MeshAttributeHandle, std::string> position_attribute;
17 
18  // mesh name info will be serialized to a json file if available
19  std::optional<std::filesystem::path> mesh_name_path;
20 
21  // This was intended to be implemenetd easily with default, too lazy to properly implement now
22  // without c++20
23  // bool operator==(const OutputOptions& o) const;
24 
25 
27 };
28 } // namespace wmtk::components::output
29 
#define WMTK_NLOHMANN_JSON_FRIEND_DECLARATION(Type)
Definition: json_macros.hpp:6
std::optional< std::filesystem::path > mesh_name_path
std::variant< wmtk::attribute::MeshAttributeHandle, std::string > position_attribute