ListeningPluginUser.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
PluginUser.h
"
4
5
#include <RobotAPI/interface/armem/client/MemoryListenerInterface.h>
6
7
#include <vector>
8
9
10
namespace
armarx::armem::client::plugins
11
{
12
class
ListeningPlugin;
13
14
15
/**
16
* @brief A memory name system client which listens to the memory updates
17
* topic (`MemoryListenerInterface`).
18
*
19
* Derive from this plugin user class to receive memory update events.
20
* If your class already inherits from an ice interface, your ice interface might need to inherit from the
21
* MemoryListenerInterface to avoid errors.
22
*/
23
class
ListeningPluginUser
:
24
virtual
public
PluginUser
,
25
virtual
public
MemoryListenerInterface
26
{
27
protected
:
28
29
ListeningPluginUser
();
30
virtual
~ListeningPluginUser
()
override
;
31
32
33
// MemoryListenerInterface
34
virtual
void
35
memoryUpdated
(
const
std::vector<data::MemoryID>& updatedSnapshotIDs,
36
const
Ice::Current&)
override
;
37
38
39
private
:
40
41
ListeningPlugin
* listeningPlugin =
nullptr
;
42
43
};
44
45
}
46
namespace
armarx::armem::client
47
{
48
using
ListeningPluginUser
=
plugins::ListeningPluginUser
;
49
}
50
namespace
armarx::armem
51
{
52
using
ListeningClientPluginUser
=
client::ListeningPluginUser
;
53
}
armarx::armem::client::plugins::ListeningPluginUser::memoryUpdated
virtual void memoryUpdated(const std::vector< data::MemoryID > &updatedSnapshotIDs, const Ice::Current &) override
Definition:
ListeningPluginUser.cpp:22
armarx::armem
Definition:
LegacyRobotStateMemoryAdapter.cpp:31
armarx::armem::client
This file is part of ArmarX.
Definition:
forward_declarations.h:7
armarx::armem::client::ListeningPluginUser
plugins::ListeningPluginUser ListeningPluginUser
Definition:
ListeningPluginUser.h:48
armarx::armem::client::plugins::PluginUser
Adds the Memory Name System client component plugin.
Definition:
PluginUser.h:29
armarx::armem::client::plugins::ListeningPlugin
Subscribes the memory updates topic.
Definition:
ListeningPlugin.h:17
armarx::armem::client::plugins::ListeningPluginUser::ListeningPluginUser
ListeningPluginUser()
Definition:
ListeningPluginUser.cpp:11
armarx::armem::client::plugins
This file is part of ArmarX.
Definition:
forward_declarations.h:24
PluginUser.h
armarx::armem::client::plugins::ListeningPluginUser::~ListeningPluginUser
virtual ~ListeningPluginUser() override
Definition:
ListeningPluginUser.cpp:17
armarx::armem::client::plugins::ListeningPluginUser
A memory name system client which listens to the memory updates topic (MemoryListenerInterface).
Definition:
ListeningPluginUser.h:23
RobotAPI
libraries
armem
client
plugins
ListeningPluginUser.h
Generated on Sat Oct 12 2024 09:14:07 for armarx_documentation by
1.8.17