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