27#include <SimoxUtility/json/json.hpp>
49 template <
typename AronType,
typename T>
54 std::is_base_of_v<armarx::aron::codegenerator::cpp::AronGeneratedClass, AronType>,
55 "AronType must be an ARON generated type");
57 const auto dtoConfig = AronType::FromAron(dto);
65 template <
typename T,
typename BOType>
72 return aronDTO.toAronDTO();
75 template <
typename AronDTO>
79 ARMARX_CHECK(std::filesystem::is_regular_file(filename)) << filename;
82 std::ifstream ifs{filename};
84 nlohmann::json jsonConfig;
89 dto.read(reader, jsonConfig);
93 template <
typename AronDTO,
typename BO>
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
::IceInternal::Handle< Dict > DictPtr
This file is part of ArmarX.
This file is part of ArmarX.
This file is part of ArmarX.
This file offers overloads of toIce() and fromIce() functions for STL container types.
AronDTO readFromJson(const std::filesystem::path &filename)
void toAron(arondto::PackagePath &dto, const PackageFileLocation &bo)
::armarx::aron::data::dto::DictPtr toAronDict(const BOType &bo)
void fromAron(const arondto::PackagePath &dto, PackageFileLocation &bo)
T fromAronDict(const ::armarx::aron::data::dto::DictPtr &dto)