MemoryNameSystem.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Registry.h"
4 
5 #include <RobotAPI/interface/armem/mns/MemoryNameSystemInterface.h>
6 
8 
9 #include <map>
10 #include <string>
11 
12 
13 namespace armarx::armem::mns
14 {
15 
16  class MemoryNameSystem : public Registry
17  {
18  public:
19 
20  using WaitForServerFuturePtr = AMD_MemoryNameSystemInterface_waitForServerPtr;
21 
22 
23  public:
24 
25  /**
26  * @brief Store the call in a container for later response.
27  */
29  const AMD_MemoryNameSystemInterface_waitForServerPtr& future,
30  const dto::WaitForServerInput& input);
31 
33 
34  dto::RegisterServerResult registerServer(const dto::RegisterServerInput& input) override;
35 
36 
37  /// Builds a RemoteGui grid containing information about registered memories.
39 
40 
41  public:
42 
43  /// Queued calls to `waitForServer`.
44  std::map<std::string, std::vector<WaitForServerFuturePtr>> waitForServerFutures;
45 
46  };
47 
48 }
armarx::armem::mns::MemoryNameSystem::waitForServer_async
void waitForServer_async(const AMD_MemoryNameSystemInterface_waitForServerPtr &future, const dto::WaitForServerInput &input)
Store the call in a container for later response.
Definition: MemoryNameSystem.cpp:8
armarx::armem::mns::Registry
A registry for memory servers.
Definition: Registry.h:23
armarx::armem::mns::MemoryNameSystem::waitForServer_processOnce
void waitForServer_processOnce()
Definition: MemoryNameSystem.cpp:17
LightweightRemoteGuiComponentPlugin.h
armarx::RemoteGui::Client::GridLayout
Definition: Widgets.h:186
armarx::armem::mns::MemoryNameSystem
Definition: MemoryNameSystem.h:16
armarx::aron::input
ReaderT::InputType & input
Definition: rw.h:19
armarx::armem::mns::MemoryNameSystem::RemoteGui_buildInfoGrid
armarx::RemoteGui::Client::GridLayout RemoteGui_buildInfoGrid()
Builds a RemoteGui grid containing information about registered memories.
Definition: MemoryNameSystem.cpp:53
armarx::armem::mns::MemoryNameSystem::WaitForServerFuturePtr
AMD_MemoryNameSystemInterface_waitForServerPtr WaitForServerFuturePtr
Definition: MemoryNameSystem.h:20
armarx::armem::mns
Definition: MemoryNameSystem.cpp:4
Registry.h
armarx::armem::mns::MemoryNameSystem::registerServer
dto::RegisterServerResult registerServer(const dto::RegisterServerInput &input) override
Register a new memory server or update an existing entry.
Definition: MemoryNameSystem.cpp:44
armarx::armem::mns::MemoryNameSystem::waitForServerFutures
std::map< std::string, std::vector< WaitForServerFuturePtr > > waitForServerFutures
Queued calls to waitForServer.
Definition: MemoryNameSystem.h:44