33 objClassSegment(objClassSegment)
41 throw armarx::LocalException(
"PersistentObjectClassSegmentBaseProxy is NULL");
44 for (
unsigned int i = 0; i < objRelations->relations.size(); i++)
46 memoryx::SECRelationBasePtr relation = objRelations->relations.at(i);
48 for (
unsigned int j = 0; j < relation->objects1.size(); j++)
50 ObjectClassBasePtr obj = relation->objects1.at(j);
52 if (obj->getId().empty())
54 relation->objects1.at(j) =
objClassSegment->getObjectClassByName(obj->getName());
57 if (!relation->objects1.at(j))
59 ARMARX_ERROR_S <<
"Could not find object with name " << obj->getName();
63 for (
unsigned int j = 0; j < relation->objects2.size(); j++)
65 ObjectClassBasePtr obj = relation->objects2.at(j);
67 if (obj->getId().empty())
69 relation->objects2.at(j) =
objClassSegment->getObjectClassByName(obj->getName());
72 if (!relation->objects2.at(j))
74 ARMARX_ERROR_S <<
"Could not find object with name " << obj->getName();