37 template <
typename AronDataT,
typename DerivedT>
64 operator typename AronDataType::PointerType()
72 const auto& n = DerivedT::DynamicCast(other);
98 return clone(newPath);
101 data::dto::GenericDataPtr
118 return std::dynamic_pointer_cast<DerivedT>(n);
124 return dynamic_cast<DerivedT&
>(n);
127 static const DerivedT&
130 return dynamic_cast<const DerivedT&
>(n);
143 <<
"The path was: " << n->getPath().toString() <<
".\n"
144 <<
"It has the descriptor: '"
147 <<
"And the typeid: " <<
typeid(n).name() <<
". Tried to cast to "
153 typename AronDataType::PointerType
aron;
const data::Descriptor descriptor
virtual VariantPtr navigateAbsolute(const Path &path) const =0
naviate absolute
Path getPath() const
get the path
virtual PointerType clone() const
data::dto::GenericDataPtr toAronDTO() const override
convert the variant to the ice representation
static DerivedT & DynamicCast(Variant &n)
std::shared_ptr< DerivedT > PointerType
static const DerivedT & DynamicCast(const Variant &n)
SpecializedVariantBase(const typename AronDataType::PointerType &o, const data::Descriptor descriptor, const Path &path=Path())
virtual bool operator==(const DerivedT &) const =0
bool operator==(const Variant &other) const override
VariantPtr navigateRelative(const Path &path) const override
navigate relative
SpecializedVariantBase()=delete
SpecializedVariantBase(const data::Descriptor descriptor, const Path &path=Path())
AronDataType::PointerType aron
static PointerType DynamicCastAndCheck(const VariantPtr &n)
static PointerType DynamicCast(const VariantPtr &n)
virtual ~SpecializedVariantBase()=default
virtual PointerType clone() const
VariantPtr cloneAsVariant(const Path &newPath) const override
virtual PointerType clone(const Path &newPath) const =0
virtual bool operator==(const PointerType &other) const =0
VariantPtr cloneAsVariant() const override
get a pointer to a copy of this variant
#define ARMARX_CHECK_NOT_NULL(ptr)
This macro evaluates whether ptr is not null and if it turns out to be false it will throw an Express...
const std::map< data::Descriptor, std::string > Descriptor2String
std::shared_ptr< Variant > VariantPtr