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
16
class
InputOptions
17
{
18
public
:
19
InputOptions
();
20
~InputOptions
();
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
39
namespace
nlohmann
{
40
template
<>
41
struct
adl_serializer<
wmtk
::components::input::InputOptions>
42
{
43
using
Type
=
wmtk::components::input::InputOptions
;
44
static
void
to_json
(
json
& j,
const
Type
& v);
45
static
void
from_json
(
const
json
& j,
Type
& v);
46
};
47
}
// namespace nlohmann
wmtk::components::input::InputOptions
Definition:
InputOptions.hpp:17
wmtk::components::input::InputOptions::file
std::filesystem::path file
Definition:
InputOptions.hpp:21
wmtk::components::input::InputOptions::imported_attributes
std::optional< std::vector< std::vector< std::string > > > imported_attributes
Definition:
InputOptions.hpp:22
wmtk::components::input::InputOptions::~InputOptions
~InputOptions()
wmtk::components::input::InputOptions::operator==
bool operator==(const InputOptions &o) const
wmtk::components::input::InputOptions::InputOptions
InputOptions()
wmtk::components::input::InputOptions::old_mode
bool old_mode
Definition:
InputOptions.hpp:29
wmtk::components::input::InputOptions::name_spec
nlohmann::json name_spec
Definition:
InputOptions.hpp:26
wmtk::components::input::InputOptions::ignore_z_if_zero
bool ignore_z_if_zero
Definition:
InputOptions.hpp:30
wmtk::components::input::InputOptions::name_spec_file
std::optional< std::filesystem::path > name_spec_file
Definition:
InputOptions.hpp:27
nlohmann
Definition:
InputOptions.cpp:15
wmtk::components::input
Definition:
input.cpp:10
wmtk::components::internal::from_json
void from_json(const nlohmann::json &j, RegularSpaceOptions &o)
Definition:
RegularSpaceOptions.cpp:17
wmtk::components::internal::to_json
void to_json(nlohmann::json &j, RegularSpaceOptions &o)
Definition:
RegularSpaceOptions.cpp:7
wmtk::components
Definition:
Tuple.hpp:14
wmtk
Definition:
Accessor.hpp:6
json
nlohmann::json json
Definition:
input.cpp:9
components
input
src
wmtk
components
input
InputOptions.hpp
Generated by
1.9.1