32 PersistentObjectClassSegmentBasePrx objClassSegment,
33 CollectionInterfacePrx entityCollection,
42 SECObjectRelationsBasePtr objRelations,
43 PersistentObjectClassSegmentBasePrx objClassSegment)
47 throw armarx::LocalException(
"PersistentObjectClassSegmentBaseProxy is NULL");
50 for (
unsigned int i = 0; i < objRelations->relations.size(); i++)
52 memoryx::SECRelationBasePtr relation = objRelations->relations.at(i);
54 for (
unsigned int j = 0; j < relation->objects1.size(); j++)
56 ObjectClassBasePtr obj = relation->objects1.at(j);
58 if (obj->getId().empty())
60 relation->objects1.at(j) =
64 if (!relation->objects1.at(j))
66 ARMARX_ERROR_S <<
"Could not find object with name " << obj->getName();
70 for (
unsigned int j = 0; j < relation->objects2.size(); j++)
72 ObjectClassBasePtr obj = relation->objects2.at(j);
74 if (obj->getId().empty())
76 relation->objects2.at(j) =
80 if (!relation->objects2.at(j))
82 ARMARX_ERROR_S <<
"Could not find object with name " << obj->getName();