20 j[
"file"] = v.
file.string();
35 if (imported_attrs.size() > 3) {
36 j[
"tetrahedron_attributes"] = imported_attrs[3];
48 v.
file = j.get<std::filesystem::path>();
51 v.
file = j[
"file"].get<std::filesystem::path>();
52 if (j.contains(
"name_spec")) {
55 if (j.contains(
"name_spec_file")) {
56 v.
name_spec_file = j[
"name_spec_file"].get<std::filesystem::path>();
61 if (j.contains(
"old_mode")) {
64 v.
old_mode = j.contains(
"ignore_z") || j.contains(
"tetrahedron_attributes");
67 "Input component is using old mode because ignore_z exists ({}) or "
68 "tetrahedron_attributes exists ({})",
69 j.contains(
"ignore_z"),
70 j.contains(
"tetrahedron_attributes"));
80 if (j.contains(
"tetrahedron_attributes")) {
85 j[
"tetrahedron_attributes"].get<std::vector<std::string>>()};
90 j[
"imported_attributes"].get<std::vector<std::vector<std::string>>>();
void from_json(const nlohmann::json &j, RegularSpaceOptions &o)
void to_json(nlohmann::json &j, RegularSpaceOptions &o)
spdlog::logger & logger()
Retrieves the current logger.