35 std::unique_ptr<type::Variant>
38 auto v = aron.VERSION;
42 auto d = aron::Version();
49 <<
"Found inconsistencies in aron versions. This may lead to ice marshalling "
50 "exceptions. Please make sure to update the sender and receiver packages. "
51 << v_str <<
" != " << d_str;
58 return std::make_unique<type::List>(
dynamic_cast<const type::dto::List&
>(aron),
61 return std::make_unique<type::Dict>(
dynamic_cast<const type::dto::Dict&
>(aron),
64 return std::make_unique<type::Pair>(
dynamic_cast<const type::dto::Pair&
>(aron),
67 return std::make_unique<type::Tuple>(
dynamic_cast<const type::dto::Tuple&
>(aron),
70 return std::make_unique<type::Object>(
71 dynamic_cast<const type::dto::AronObject&
>(aron), path);
73 return std::make_unique<type::NDArray>(
74 dynamic_cast<const type::dto::NDArray&
>(aron), path);
76 return std::make_unique<type::Matrix>(
dynamic_cast<const type::dto::Matrix&
>(aron),
79 return std::make_unique<type::Image>(
dynamic_cast<const type::dto::Image&
>(aron),
82 return std::make_unique<type::PointCloud>(
85 return std::make_unique<type::Quaternion>(
88 return std::make_unique<type::IntEnum>(
89 dynamic_cast<const type::dto::IntEnum&
>(aron), path);
91 return std::make_unique<type::Int>(
dynamic_cast<const type::dto::AronInt&
>(aron),
94 return std::make_unique<type::Long>(
dynamic_cast<const type::dto::AronLong&
>(aron),
97 return std::make_unique<type::Float>(
98 dynamic_cast<const type::dto::AronFloat&
>(aron), path);
100 return std::make_unique<type::Double>(
101 dynamic_cast<const type::dto::AronDouble&
>(aron), path);
103 return std::make_unique<type::String>(
104 dynamic_cast<const type::dto::AronString&
>(aron), path);
106 return std::make_unique<type::Bool>(
dynamic_cast<const type::dto::AronBool&
>(aron),
109 return std::make_unique<type::AnyObject>(
110 dynamic_cast<const type::dto::AnyObject&
>(aron), path);
116 "Got an unknown descriptor",