57 const EntityBasePtr& updateEntity,
58 const ::Ice::Current&)
override
60 ARMARX_DEBUG_S <<
"AttributeReplacementFusion::fuseEntity() called";
63 EntityBasePtr fusedEntity = EntityBasePtr::dynamicCast(baseEntity->ice_clone());
64 addAttributesWithReplacement(updateEntity, fusedEntity);
71 addAttributesWithReplacement(
const EntityBasePtr& srcEntity,
72 const EntityBasePtr& destEntity)
const
74 NameList attrNames = srcEntity->getAttributeNames();
76 for (NameList::const_iterator it = attrNames.begin(); it != attrNames.end(); ++it)
78 destEntity->putAttribute(srcEntity->getAttribute(*it));
#define ARMARXCORE_IMPORT_EXPORT
EntityBasePtr fuseEntity(const EntityBasePtr &baseEntity, const EntityBasePtr &updateEntity, const ::Ice::Current &) override
Copies attributes from the update entity to the stored entity.
AttributeReplacementFusion()
Creates a new AttributeEnrichementFusion.
EntityFusionMethod(std::string methodName)
Constructs a new fusion method.
#define ARMARX_DEBUG_S
The logging level for output that is only interesting while debugging.