Wildmeshing Toolkit
Loading...
Searching...
No Matches
OutputOptions.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <filesystem>
3
#include <nlohmann/json.hpp>
4
#include <
wmtk/attribute/MeshAttributeHandle.hpp
>
5
#include <
wmtk/components/utils/json_macros.hpp
>
6
7
8
namespace
wmtk::components::output
{
9
struct
OutputOptions
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
26
WMTK_NLOHMANN_JSON_FRIEND_DECLARATION
(
OutputOptions
)
27
};
28
}
// namespace wmtk::components::output
29
MeshAttributeHandle.hpp
json_macros.hpp
WMTK_NLOHMANN_JSON_FRIEND_DECLARATION
#define WMTK_NLOHMANN_JSON_FRIEND_DECLARATION(Type)
Definition
json_macros.hpp:6
wmtk::components::output
Definition
output.cpp:14
wmtk::components::output::OutputOptions
Definition
OutputOptions.hpp:10
wmtk::components::output::OutputOptions::file
std::filesystem::path file
Definition
OutputOptions.hpp:11
wmtk::components::output::OutputOptions::mesh_name_path
std::optional< std::filesystem::path > mesh_name_path
Definition
OutputOptions.hpp:19
wmtk::components::output::OutputOptions::position_attribute
std::variant< wmtk::attribute::MeshAttributeHandle, std::string > position_attribute
Definition
OutputOptions.hpp:16
wmtk::components::output::OutputOptions::type
std::string type
Definition
OutputOptions.hpp:13
components
output
wmtk
components
output
OutputOptions.hpp
Generated by
1.9.8