27 #include <MemoryX/interface/core/MemoryInterface.h>
28 #include <MemoryX/interface/components/LongtermMemoryInterface.h>
43 virtual public WorkingMemorySnapshotInterface
49 PersistentEntitySegmentBasePrx addSegment(const ::std::string& segName, const ::Ice::Current& = Ice::emptyCurrent)
override;
50 PersistentEntitySegmentBasePrx getSegment(const ::std::string& segName, const ::Ice::Current& = Ice::emptyCurrent)
override;
51 bool hasSegment(const ::std::string& segName, const ::Ice::Current& = Ice::emptyCurrent)
override;
52 NameList getSegmentNames(const ::Ice::Current& = Ice::emptyCurrent)
override;
53 void clear(const ::Ice::Current& = Ice::emptyCurrent)
override;
59 void saveWorkingMemory(
const AbstractWorkingMemoryInterfacePrx& workingMemory, const ::Ice::Current& = Ice::emptyCurrent)
override;
60 void saveWorkingMemorySubset(
const AbstractWorkingMemoryInterfacePrx& workingMemory,
const Ice::StringSeq& entityIdList, const ::Ice::Current& = Ice::emptyCurrent)
override;
66 void restoreWorkingMemory(
const AbstractWorkingMemoryInterfacePrx& workingMemory, const ::Ice::Current& = Ice::emptyCurrent)
override;
70 SegmentMap getSegmentAndCollectionNames()
const;
73 void serialize(
const armarx::ObjectSerializerBasePtr& serializer, const ::Ice::Current& = Ice::emptyCurrent)
const override;
74 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer, const ::Ice::Current& = Ice::emptyCurrent)
override;
81 const DatabaseInterfacePrx& databasePrx;
83 std::map<Ice::Identity, PersistentEntitySegmentBasePtr> openedSegments;
85 std::string getSegmentCollectionName(
const std::string& segName);
88 void addSegmentToMap(
const std::string& segName);