ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
materialepas_json_export.hpp File Reference
#include "MaterialPassport.hpp"
#include "materialepas_traits.hpp"
#include <nlohmann/json.hpp>
#include <span>
#include <string>
#include <vector>
Include dependency graph for materialepas_json_export.hpp:

Go to the source code of this file.

Classes

struct  reusex::core::json_export::SectionDescriptor
 Describes a section in the JSON export template. More...

Namespaces

namespace  reusex
namespace  reusex::core
namespace  reusex::core::json_export

Functions

std::span< const SectionDescriptorreusex::core::json_export::section_descriptors ()
 Get the section descriptors in JSON template order.
nlohmann::json reusex::core::json_export::to_json (const MaterialPassport &passport)
 Export a single MaterialPassport to JSON.
nlohmann::json reusex::core::json_export::to_json_with_defaults (const MaterialPassport &passport)
 Export a single MaterialPassport to JSON with sensible defaults.
nlohmann::json reusex::core::json_export::generate_blank_template ()
 Generate a blank MaterialPassport template as JSON.
nlohmann::json reusex::core::json_export::to_json (const std::vector< MaterialPassport > &passports)
 Export multiple MaterialPassports to a JSON array.
std::string reusex::core::json_export::to_json_string (const MaterialPassport &passport, int indent=4)
 Export a single passport as a formatted JSON string.
std::string reusex::core::json_export::to_json_string (const std::vector< MaterialPassport > &passports, int indent=4)
 Export multiple passports as a formatted JSON string.