31 #include <MemoryX/interface/core/EntityBase.h>
32 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
33 #include <MemoryX/interface/memorytypes/MemorySegments.h>
40 virtual public BodySchemaMemorySegmentBase
45 bool useMongoIds =
true) :
51 getOacById(const ::std::string&
id, const ::Ice::Current& = Ice::emptyCurrent)
const
53 return completeOac(OacBasePtr::dynamicCast(getEntityById(
id)));
57 getOacByName(const ::std::string& name, const ::Ice::Current& = Ice::emptyCurrent)
const
59 return completeOac(OacBasePtr::dynamicCast(getEntityByName(name)));
63 getAll(const ::Ice::Current& = Ice::emptyCurrent)
const
67 EntityIdList entityIdList = getAllEntityIds();
69 for (EntityIdList::const_iterator it = entityIdList.begin(); it != entityIdList.end();
72 OacBasePtr oac = getOacById(*it);
76 result.push_back(oac);
91 OacBasePtr replaceObjectDummies(OacBasePtr oac)
const;
100 OacBasePtr completeOac(OacBasePtr oac)
const;
120 OacPtr oacCast = OacPtr::dynamicCast(oac);
124 throw IceUtil::NullHandleException(
"Could not cast OacBase into Oac Ptr", 0);
129 throw armarx::LocalException(
"PersistentObjectClassSegmentBaseProxy is NULL");
132 SECObjectRelationsBasePtr pre = oacCast->getPredictionFunction()->getSECPreconditions();
133 SECObjectRelationsBasePtr post = oacCast->getPredictionFunction()->getSECEffects();