ReadOnlyPluginUser.cpp
Go to the documentation of this file.
1 #include "ReadOnlyPluginUser.h"
2 #include "Plugin.h"
3 
6 
9 
10 
11 
13 {
14 
16  {
17  addPlugin(plugin);
18  }
19 
20 
22  {
23  }
24 
25 
27  {
28  plugin->setMemoryName(memoryName);
29  }
30 
31 
32  armem::query::data::Result ReadOnlyPluginUser::query(const armem::query::data::Input& input, const Ice::Current&)
33  {
35  return iceAdapter().query(input);
36  }
37 
38  structure::data::GetServerStructureResult ReadOnlyPluginUser::getServerStructure(const Ice::Current&)
39  {
41  return iceAdapter().getServerStructure();
42  }
43 
44 
46  {
47  return *plugin;
48  }
49 
50 
52  {
53  return plugin->workingMemory;
54  }
55 
56 
58  {
59  return plugin->iceAdapter;
60  }
61 
62 }
armarx::armem::server::plugins::Plugin::iceAdapter
MemoryToIceAdapter iceAdapter
Helps connecting memory to ice. Used to handle Ice callbacks.
Definition: Plugin.h:66
armarx::armem::server::plugins::ReadOnlyPluginUser::memoryServerPlugin
Plugin & memoryServerPlugin()
Definition: ReadOnlyPluginUser.cpp:45
armarx::armem::server::MemoryToIceAdapter
Helps connecting a Memory server to the Ice interface.
Definition: MemoryToIceAdapter.h:19
armarx::armem::server::plugins::ReadOnlyPluginUser::workingMemory
server::wm::Memory & workingMemory()
Definition: ReadOnlyPluginUser.cpp:51
armarx::armem::server::plugins::ReadOnlyPluginUser::~ReadOnlyPluginUser
virtual ~ReadOnlyPluginUser() override
Definition: ReadOnlyPluginUser.cpp:21
armarx::ManagedIceObject::addPlugin
PluginT * addPlugin(const std::string prefix="", ParamsT &&...params)
Definition: ManagedIceObject.h:182
armarx::armem::server::plugins::ReadOnlyPluginUser::iceAdapter
MemoryToIceAdapter & iceAdapter()
Definition: ReadOnlyPluginUser.cpp:57
armarx::armem::server::plugins::ReadOnlyPluginUser::getServerStructure
virtual armem::structure::data::GetServerStructureResult getServerStructure(const Ice::Current &=Ice::emptyCurrent) override
Definition: ReadOnlyPluginUser.cpp:38
armarx::armem::server::MemoryToIceAdapter::getServerStructure
armem::structure::data::GetServerStructureResult getServerStructure()
Definition: MemoryToIceAdapter.cpp:357
armarx::armem::server::plugins::ReadOnlyPluginUser::setMemoryName
void setMemoryName(const std::string &memoryName)
Definition: ReadOnlyPluginUser.cpp:26
ARMARX_TRACE
#define ARMARX_TRACE
Definition: trace.h:69
armarx::armem::server::wm::Memory
Definition: memory_definitions.h:136
armarx::armem::server::plugins::ReadOnlyPluginUser::query
virtual armem::query::data::Result query(const armem::query::data::Input &input, const Ice::Current &=Ice::emptyCurrent) override
Definition: ReadOnlyPluginUser.cpp:32
Plugin.h
armarx::aron::input
ReaderT::InputType & input
Definition: rw.h:19
error.h
MemoryToIceAdapter.h
Component.h
ExpressionException.h
armarx::armem::server::plugins::ReadOnlyPluginUser::ReadOnlyPluginUser
ReadOnlyPluginUser()
Definition: ReadOnlyPluginUser.cpp:15
ReadOnlyPluginUser.h
armarx::armem::laser_scans::constants::memoryName
const std::string memoryName
Definition: constants.h:28
armarx::armem::server::plugins::Plugin::setMemoryName
void setMemoryName(const std::string &memoryName)
Set the name of the wm and the ltm.
Definition: Plugin.cpp:160
armarx::armem::server::plugins::Plugin::workingMemory
server::wm::Memory workingMemory
The actual memory.
Definition: Plugin.h:63
armarx::armem::server::plugins
Definition: Plugin.cpp:13
armarx::armem::server::plugins::Plugin
Definition: Plugin.h:23
armarx::armem::server::MemoryToIceAdapter::query
query::data::Result query(const armem::query::data::Input &input)
Definition: MemoryToIceAdapter.cpp:291