28#include <MemoryX/interface/core/EntityBase.h>
29#include <MemoryX/interface/memorytypes/MemoryEntities.h>
30#include <MemoryX/interface/memorytypes/MemorySegments.h>
36 virtual public PersistentAgentInstancesSegmentBase
43 PersistentAgentInstancesSegmentBase()
50 AgentInstanceBasePtr res = AgentInstanceBasePtr::dynamicCast(
getEntityById(
id));
54 ARMARX_WARNING_S <<
"Entity with id " <<
id <<
" is not of type AgentInstance!"
63 const ::Ice::Current& = Ice::emptyCurrent)
const
65 AgentInstanceBasePtr res = AgentInstanceBasePtr::dynamicCast(
getEntityByName(name));
69 ARMARX_WARNING_S <<
"Entity with name " << name <<
" is not of type AgentEntity!"
#define ARMARXCOMPONENT_IMPORT_EXPORT
PersistentAgentInstancesSegment(CollectionInterfacePrx entityCollection, Ice::CommunicatorPtr ic, bool useMongoIds=true)
AgentInstanceBasePtr getAgentInstanceByName(const std::string &name, const ::Ice::Current &=Ice::emptyCurrent) const
AgentInstanceBasePtr getAgentInstanceById(const std::string &id, const ::Ice::Current &=Ice::emptyCurrent) const
PersistentEntitySegment(CollectionInterfacePrx entityCollection, Ice::CommunicatorPtr ic, bool useMongoIds=true)
EntityBasePtr getEntityById(const ::std::string &entityId, const ::Ice::Current &=Ice::emptyCurrent) const override
EntityBasePtr getEntityByName(const ::std::string &name, const ::Ice::Current &=Ice::emptyCurrent) const override
#define ARMARX_WARNING_S
The logging level for unexpected behaviour, but not a serious problem.
::IceInternal::Handle<::Ice::Communicator > CommunicatorPtr
IceInternal::Handle< PersistentAgentInstancesSegment > PersistentAgentInstancesSegmentPtr