55 EntityBasePtr
fuseEntity(
const EntityBasePtr& baseEntity,
const EntityBasePtr& updateEntity, const ::Ice::Current&)
override
57 ARMARX_DEBUG_S <<
"AttributeReplacementFusion::fuseEntity() called";
60 EntityBasePtr fusedEntity = EntityBasePtr::dynamicCast(baseEntity->ice_clone());
61 addAttributesWithReplacement(updateEntity, fusedEntity);
67 void addAttributesWithReplacement(
const EntityBasePtr& srcEntity,
const EntityBasePtr& destEntity)
const
69 NameList attrNames = srcEntity->getAttributeNames();
71 for (NameList::const_iterator it = attrNames.begin(); it != attrNames.end(); ++it)
73 destEntity->putAttribute(srcEntity->getAttribute(*it));