EntityInstance.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <filesystem>
4
5
// Base Class
6
#include "
detail/EntityInstanceBase.h
"
7
#include "
detail/mixins/DiskStorageMixin.h
"
8
#include "
detail/mixins/MongoDBStorageMixin.h
"
9
10
namespace
armarx::armem::server::ltm
11
{
12
13
class
EntityInstance
:
14
public
detail::EntityInstanceBase
,
15
public
detail::mixin::DiskMemoryItemMixin
,
16
public
detail::mixin::MongoDBStorageMixin
17
{
18
public
:
19
EntityInstance
(
const
detail::mixin::Path
&,
20
const
detail::mixin::MongoDBSettings
&,
21
const
std::string&,
22
const
MemoryID
&
id
,
23
const
std::shared_ptr<Processors>& p);
24
25
protected
:
26
void
_loadAllReferences
(
armem::wm::EntitySnapshot
&)
const override
;
27
void
_resolve
(
armem::wm::EntityInstance
&)
const override
;
28
nlohmann::json
_store
(
const
armem::wm::EntityInstance
&)
override
;
29
30
private
:
31
};
32
33
}
// namespace armarx::armem::server::ltm
armarx::armem::server::ltm::detail::EntityInstanceBase
Interface functions for the longterm memory classes.
Definition:
EntityInstanceBase.h:15
MongoDBStorageMixin.h
armarx::armem::server::ltm::EntityInstance::_store
nlohmann::json _store(const armem::wm::EntityInstance &) override
Definition:
EntityInstance.cpp:124
armarx::armem::wm::EntityInstance
Client-side working entity instance.
Definition:
memory_definitions.h:32
EntityInstanceBase.h
armarx::armem::server::ltm::EntityInstance::_loadAllReferences
void _loadAllReferences(armem::wm::EntitySnapshot &) const override
Definition:
EntityInstance.cpp:30
armarx::armem::MemoryID
A memory ID.
Definition:
MemoryID.h:47
armarx::armem::wm::EntitySnapshot
Client-side working memory entity snapshot.
Definition:
memory_definitions.h:80
armarx::armem::server::ltm::detail::mixin::MongoDBStorageMixin
Definition:
MongoDBStorageMixin.h:45
armarx::armem::server::ltm
Definition:
forward_declarations.h:20
armarx::armem::server::ltm::EntityInstance
Definition:
EntityInstance.h:13
armarx::armem::server::ltm::detail::mixin::MongoDBSettings
Definition:
MongoDBStorageMixin.h:15
armarx::armem::server::ltm::detail::mixin::Path
std::filesystem::path Path
Definition:
DiskStorageMixin.h:17
armarx::armem::server::ltm::EntityInstance::EntityInstance
EntityInstance(const detail::mixin::Path &, const detail::mixin::MongoDBSettings &, const std::string &, const MemoryID &id, const std::shared_ptr< Processors > &p)
Definition:
EntityInstance.cpp:16
armarx::armem::server::ltm::EntityInstance::_resolve
void _resolve(armem::wm::EntityInstance &) const override
Definition:
EntityInstance.cpp:48
armarx::armem::server::ltm::detail::mixin::DiskMemoryItemMixin
Definition:
DiskStorageMixin.h:19
DiskStorageMixin.h
RobotAPI
libraries
armem
server
ltm
EntityInstance.h
Generated on Sat Sep 7 2024 09:13:52 for armarx_documentation by
1.8.17