Go to the documentation of this file.
28 #include <SimoxUtility/algorithm/string.h>
57 const std::map<std::string, std::pair<aron::data::VariantPtr, aron::type::VariantPtr>>&
67 std::string typeNamePrefix;
68 std::map<std::string, std::pair<aron::data::VariantPtr, aron::type::VariantPtr>>
82 template <
typename DTOType,
typename BOType>
96 const std::map<std::string, BOType>&
99 return foundSubObjects;
105 if (elementType->getFullName() == DTOType::ToAronType()->getFullName())
110 BOType boObj = armarx::aron::fromAron<BOType, DTOType>(dto);
111 foundSubObjects.emplace(elementData->getPath().toString(), boObj);
124 return RecursiveConstTypedVariantVisitor::GetObjectElementsWithNullType(elementData,
129 std::map<std::string, BOType> foundSubObjects;
Finds aron objects with a given type name prefix in aron variants and returns them as BOs.
void visitUnknown(DataInput &elementData, TypeInput &elementType) override
void visitUnknown(DataInput &elementData, TypeInput &elementType) override
std::map< std::string, std::pair< DataInputNonConst, TypeInputNonConst > > MapElements
BOSubObjectFinder()=default
static PointerType DynamicCastAndCheck(const VariantPtr &n)
MapElements getObjectElements(DataInput &elementData, TypeInput &elementType) override
typename TypedVisitorBase< const data::VariantPtr, const type::VariantPtr >::TypeInput TypeInput
const std::map< std::string, std::pair< aron::data::VariantPtr, aron::type::VariantPtr > > & getFoundObjects()
Get the objects that have been found.
Finds aron objects with a given type name prefix in aron variants.
const std::map< std::string, BOType > & getFoundObjects()
Get the objects that have been found.
void visitObjectOnEnter(DataInput &elementData, TypeInput &elementType) override
typename TypedVisitorBase< const data::VariantPtr, const type::VariantPtr >::DataInput DataInput
~BOSubObjectFinder() override=default
void visitObjectOnEnter(DataInput &elementData, TypeInput &elementType) override
SubObjectFinder(const std::string &typeNamePrefix)
~SubObjectFinder() override=default
MapElements getObjectElements(DataInput &elementData, TypeInput &elementType) override