Go to the documentation of this file.
37 acceptedType1(FromAronDTO(*o.acceptedType1, path.withAcceptedTypeIndex(0))),
38 acceptedType2(FromAronDTO(*o.acceptedType2, path.withAcceptedTypeIndex(1)))
43 std::pair<VariantPtr, VariantPtr>
46 return {acceptedType1, acceptedType2};
66 if (acceptedType1 ==
nullptr)
71 if (acceptedType2 ==
nullptr)
100 std::vector<VariantPtr>
103 return {acceptedType1, acceptedType2};
115 return "Pair<" + acceptedType1->getShortName() +
", " + acceptedType2->getShortName() +
">";
121 return "armarx::aron::type::Pair<" + acceptedType1->getFullName() +
", " +
122 acceptedType2->getFullName() +
">";
128 return "armarx::aron::type::Pair";
143 __PRETTY_FUNCTION__,
"Could not navigate without a valid path",
path);
147 if (el ==
"::accepted_type_0")
151 return acceptedType1;
156 return acceptedType1->navigateAbsolute(next);
159 else if (el ==
"::accepted_type_1")
163 return acceptedType2;
168 return acceptedType2->navigateAbsolute(next);
174 __PRETTY_FUNCTION__,
"Could not find an element of a path.", el,
path);
static std::string GetNamePrefix()
std::pair< VariantPtr, VariantPtr > getAcceptedTypes() const
std::string getFirstElement() const
A base class for aron exceptions.
std::shared_ptr< Variant > VariantPtr
#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...
void addAcceptedType(const VariantPtr &)
std::string getFullName() const override
get the full name of this specific type
VariantPtr getFirstAcceptedType() const
The ValueNotValidException class.
VariantPtr getSecondAcceptedType() const
std::string getShortName() const override
get a short name of this specific type
size_t childrenSize() const override
type::dto::Pair ::PointerType aron
std::shared_ptr< class Pair > PairPtr
Pair(const Path &path=Path())
A convenience header to include all aron files (full include, not forward declared)
VariantPtr navigateAbsolute(const Path &path) const override
naviate absolute
Path withDetachedFirstElement() const
void setSecondAcceptedType(const VariantPtr &)
type::dto::PairPtr toPairDTO() const
std::vector< VariantPtr > getChildren() const override
get all child elements
void setFirstAcceptedType(const VariantPtr &)
static std::string GetFullNamePrefix()