MemoryItem.cpp
Go to the documentation of this file.
1#include "MemoryItem.h"
2
5
7
9{
10 MemoryItem::MemoryItem(const std::string& exportName, const MemoryID& id) :
11 processors(std::make_shared<Processors>()), exportName(exportName), _id(id)
12 {
13 }
14
15 MemoryItem::MemoryItem(const std::string& exportName,
16 const MemoryID& id,
17 const std::shared_ptr<Processors>& p) :
18 processors(p), exportName(exportName), _id(id)
19 {
20 }
21
22 void
23 MemoryItem::setExportName(const std::string& id)
24 {
25 exportName = id;
27 }
29 void
31 {
32 _id = id;
33 _setMemoryID(id);
34 }
35
38 {
39 return _id;
40 }
41
42 std::string
44 {
45 return _id.getLeafItem();
46 }
47
48 void
49 MemoryItem::setMemoryName(const std::string& memoryName)
50 {
51 _id.memoryName = memoryName;
52 }
53} // namespace armarx::armem::server::ltm::detail
std::string getLeafItem() const
Get the lowest defined level (or empty string if there is none).
Definition MemoryID.cpp:119
all necessary classes to filter and convert an entry of the ltm to some other format(s)
Definition Processors.h:20
void setMemoryName(const std::string &memoryName)
virtual void _setExportName(const std::string &)
Definition MemoryItem.h:44
virtual void _setMemoryID(const MemoryID &)
Definition MemoryItem.h:49
std::shared_ptr< Processors > processors
Definition MemoryItem.h:54
MemoryItem(const std::string &exportName, const MemoryID &)
auto make_shared(Args &&... args)