31 #include <MemoryX/interface/core/EntityBase.h>
32 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
33 #include <MemoryX/interface/memorytypes/MemorySegments.h>
42 virtual public OacMemorySegmentBase
47 objClassSegment(objClassSegment)
51 OacBasePtr
getOacById(const ::std::string&
id, const ::Ice::Current& = Ice::emptyCurrent)
const override
53 return completeOac(OacBasePtr::dynamicCast(getEntityById(
id)));
56 OacBasePtr
getOacByName(const ::std::string& name, const ::Ice::Current& = Ice::emptyCurrent)
const override
58 return completeOac(OacBasePtr::dynamicCast(getEntityByName(name)));
61 OacBaseList
getAll(const ::Ice::Current& = Ice::emptyCurrent)
const override
65 EntityIdList entityIdList = getAllEntityIds();
67 for (EntityIdList::const_iterator it = entityIdList.begin(); it != entityIdList.end(); ++it)
69 OacBasePtr oac = getOacById(*it);
73 result.push_back(oac);
89 OacBasePtr replaceObjectDummies(OacBasePtr oac)
const;
98 OacBasePtr completeOac(OacBasePtr oac)
const;
117 OacPtr oacCast = OacPtr::dynamicCast(oac);
121 throw IceUtil::NullHandleException(
"Could not cast OacBase into Oac Ptr", 0);
126 throw armarx::LocalException(
"PersistentObjectClassSegmentBaseProxy is NULL");
129 SECObjectRelationsBasePtr pre = oacCast->getPredictionFunction()->getSECPreconditions();
130 SECObjectRelationsBasePtr post = oacCast->getPredictionFunction()->getSECEffects();