MemoryNameSystem Class Reference

#include <RobotAPI/libraries/armem/mns/MemoryNameSystem.h>

+ Inheritance diagram for MemoryNameSystem:

Public Types

using WaitForServerFuturePtr = AMD_MemoryNameSystemInterface_waitForServerPtr
 

Public Member Functions

dto::RegisterServerResult registerServer (const dto::RegisterServerInput &input) override
 Register a new memory server or update an existing entry. More...
 
armarx::RemoteGui::Client::GridLayout RemoteGui_buildInfoGrid ()
 Builds a RemoteGui grid containing information about registered memories. More...
 
void waitForServer_async (const AMD_MemoryNameSystemInterface_waitForServerPtr &future, const dto::WaitForServerInput &input)
 Store the call in a container for later response. More...
 
void waitForServer_processOnce ()
 
- Public Member Functions inherited from Registry
dto::GetAllRegisteredServersResult getAllRegisteredServers ()
 
bool hasServer (const std::string &memoryName) const
 Indicates whether a server entry for that name exists. More...
 
 Registry (const std::string &logTag="MemoryNameSystem Registry")
 
dto::RemoveServerResult removeServer (const dto::RemoveServerInput &input)
 Remove a server entry. More...
 
dto::ResolveServerResult resolveServer (const dto::ResolveServerInput &input)
 Gets a server entry, if it is available. More...
 

Public Attributes

std::map< std::string, std::vector< WaitForServerFuturePtr > > waitForServerFutures
 Queued calls to waitForServer. More...
 
- Public Attributes inherited from Registry
std::map< std::string, ServerInfoservers
 The registered memories. More...
 

Detailed Description

Definition at line 16 of file MemoryNameSystem.h.

Member Typedef Documentation

◆ WaitForServerFuturePtr

using WaitForServerFuturePtr = AMD_MemoryNameSystemInterface_waitForServerPtr

Definition at line 20 of file MemoryNameSystem.h.

Member Function Documentation

◆ registerServer()

dto::RegisterServerResult registerServer ( const dto::RegisterServerInput &  input)
overridevirtual

Register a new memory server or update an existing entry.

Causes threads waiting in waitForMemory() to resume if the respective memory server was added.

Reimplemented from Registry.

Definition at line 44 of file MemoryNameSystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoteGui_buildInfoGrid()

armarx::RemoteGui::Client::GridLayout RemoteGui_buildInfoGrid ( )

Builds a RemoteGui grid containing information about registered memories.

Definition at line 53 of file MemoryNameSystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ waitForServer_async()

void waitForServer_async ( const AMD_MemoryNameSystemInterface_waitForServerPtr &  future,
const dto::WaitForServerInput &  input 
)

Store the call in a container for later response.

Definition at line 8 of file MemoryNameSystem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ waitForServer_processOnce()

void waitForServer_processOnce ( )

Definition at line 17 of file MemoryNameSystem.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ waitForServerFutures

std::map<std::string, std::vector<WaitForServerFuturePtr> > waitForServerFutures

Queued calls to waitForServer.

Definition at line 44 of file MemoryNameSystem.h.


The documentation for this class was generated from the following files: