8#include <RobotAPI/libraries/skills/core/aron/FluxioValue.aron.generated.h>
16 std::optional<manager::dto::FluxioValue>
19 manager::dto::FluxioValue ret;
27 ret.profileId =
profilePtr->toFluxioIdentificatorIce();
33 ret.content =
content->toAronDTO();
38 std::optional<FluxioValue>
40 std::map<std::string, FluxioProfile>& profilesMap)
57 std::optional<FluxioValue>
59 std::map<std::string, FluxioProfile>& profilesMap)
71 if (!i.content->hasElement(
"content")) {
72 ARMARX_WARNING <<
"Error while converting FluxioValue from Aron for profile: '" << i.profileId.id <<
"': content not found";
75 ret.
content = i.content->getElement(
"content");
80 std::optional<manager::arondto::FluxioValue>
83 manager::arondto::FluxioValue ret;
92 ret.profileId =
profilePtr->toFluxioIdentificatorAron();
100 dict->addElement(
"content",
content);
static VariantPtr FromAronDTO(const data::dto::GenericDataPtr &, const Path &=Path())
create a variant from a dto object
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
std::shared_ptr< Dict > DictPtr
aron::data::DictPtr make_dict(_Args &&... args)
This file is part of ArmarX.
This file offers overloads of toIce() and fromIce() functions for STL container types.
static std::experimental::observer_ptr< const FluxioProfile > FromFluxioIdentificatorIce(const manager::dto::FluxioIdentificator &i, std::map< std::string, FluxioProfile > &profilesMap)
static std::experimental::observer_ptr< const FluxioProfile > FromFluxioIdentificatorAron(const manager::arondto::FluxioIdentificator &i, std::map< std::string, FluxioProfile > &profilesMap)
std::optional< manager::dto::FluxioValue > toManagerIce() const
std::optional< manager::arondto::FluxioValue > toAron() const
armarx::aron::data::VariantPtr content
std::experimental::observer_ptr< const FluxioProfile > profilePtr
static std::optional< FluxioValue > FromAron(const manager::arondto::FluxioValue &i, std::map< std::string, FluxioProfile > &profilesMap)
static std::optional< FluxioValue > FromIce(const manager::dto::FluxioValue &i, std::map< std::string, FluxioProfile > &profilesMap)