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;
26  _setExportName(id);
27  }
28 
29  void
30  MemoryItem::setMemoryID(const MemoryID& id)
31  {
32  _id = id;
33  _setMemoryID(id);
34  }
35 
36  MemoryID
37  MemoryItem::id() const
38  {
39  return _id;
40  }
41 
42  std::string
43  MemoryItem::name() const
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
armarx::armem::server::ltm::detail
Definition: CoreSegmentBase.cpp:3
armarx::armem::server::ltm::detail::MemoryItem::MemoryItem
MemoryItem(const std::string &exportName, const MemoryID &)
Definition: MemoryItem.cpp:10
memory_definitions.h
armarx::armem::MemoryID
A memory ID.
Definition: MemoryID.h:47
armarx::make_shared
auto make_shared(Args &&...args)
Definition: ManagedIceObject.h:90
TimeUtil.h
std
Definition: Application.h:66
armarx::armem::laser_scans::constants::memoryName
const std::string memoryName
Definition: constants.h:28
Logging.h
armarx::armem::server::ltm::Processors
all necessary classes to filter and convert an entry of the ltm to some other format(s)
Definition: Processors.h:19
MemoryItem.h
armarx::armem::MemoryID::getLeafItem
std::string getLeafItem() const
Get the lowest defined level (or empty string if there is none).
Definition: MemoryID.cpp:119