ReadOnlyPluginUser.h
Go to the documentation of this file.
1 #pragma once
2 
4 
6 #include <RobotAPI/interface/armem/server/MemoryInterface.h>
7 
9 
10 
12 {
13 
14  class Plugin;
15 
16 
17  /**
18  * @brief Base class of memory server components.
19  *
20  * Implements the server ice interfaces using the ice adapter of the plugin.
21  */
23  virtual public ManagedIceObject
24  , virtual public ReadingMemoryInterface
25  , virtual public client::plugins::PluginUser
26  {
27  public:
28 
30  virtual ~ReadOnlyPluginUser() override;
31 
32 
33  void setMemoryName(const std::string& memoryName);
34 
35 
36  // ReadingInterface interface
37  virtual armem::query::data::Result query(
38  const armem::query::data::Input& input,
39  const Ice::Current& = Ice::emptyCurrent) override;
40 
41 
42  virtual armem::structure::data::GetServerStructureResult
43  getServerStructure(const Ice::Current& = Ice::emptyCurrent) override;
44 
45 
46  public:
47 
49 
52 
53 
54  private:
55 
56  plugins::Plugin* plugin = nullptr;
57 
58  };
59 
60 }
61 
62 namespace armarx::armem::server
63 {
65 }
armarx::armem::server::plugins::ReadOnlyPluginUser
Base class of memory server components.
Definition: ReadOnlyPluginUser.h:22
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::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::client::plugins::PluginUser
Adds the Memory Name System client component plugin.
Definition: PluginUser.h:29
armarx::armem::server::plugins::ReadOnlyPluginUser::setMemoryName
void setMemoryName(const std::string &memoryName)
Definition: ReadOnlyPluginUser.cpp:26
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
ManagedIceObject.h
armarx::aron::input
ReaderT::InputType & input
Definition: rw.h:19
armarx::armem::server
Definition: GraspMemory.cpp:19
armarx::armem::server::plugins::ReadOnlyPluginUser::ReadOnlyPluginUser
ReadOnlyPluginUser()
Definition: ReadOnlyPluginUser.cpp:15
armarx::ManagedIceObject
The ManagedIceObject is the base class for all ArmarX objects.
Definition: ManagedIceObject.h:163
forward_declarations.h
armarx::armem::laser_scans::constants::memoryName
const std::string memoryName
Definition: constants.h:28
PluginUser.h
plugins::Plugin
armarx::armem::server::plugins
Definition: Plugin.cpp:13
armarx::armem::server::plugins::Plugin
Definition: Plugin.h:23