Go to the documentation of this file.
9 const AMD_MemoryNameSystemInterface_waitForServerPtr& future,
10 const dto::WaitForServerInput&
input)
21 auto& [name, futures] = *it;
26 dto::WaitForServerResult result;
27 result.success =
true;
31 for (
auto& future : futures)
33 future->ice_response(result);
60 grid.
add(
Label(
"Memory Name"), {row, 0})
61 .add(
Label(
"Component Name"), {row, 1})
62 .add(
Label(
"R/W/P/A"), {row, 2})
63 .add(
Label(
"Registration Time"), {row, 3})
67 for (
const auto& [name, info] :
servers)
70 std::string componentName =
"";
71 std::string mode =
"";
72 if (info.server.reading)
74 componentName = info.server.reading->ice_getIdentity().name;
77 if (info.server.writing)
79 componentName = info.server.writing->ice_getIdentity().name;
82 if (info.server.prediction)
84 componentName = info.server.prediction->ice_getIdentity().name;
87 if (info.server.actions)
89 componentName = info.server.actions->ice_getIdentity().name;
97 grid.
add(
Label(componentName), {row, col});
void waitForServer_async(const AMD_MemoryNameSystemInterface_waitForServerPtr &future, const dto::WaitForServerInput &input)
Store the call in a container for later response.
Information about a memory entry.
GridLayout & add(Widget const &child, Pos pos, Span span=Span{1, 1})
mns::dto::MemoryServerInterfaces server
void waitForServer_processOnce()
uint32_t Label
Type of an object label.
std::string toDateTimeMilliSeconds(const Time &time, int decimals=6)
Returns timeas e.g.
ReaderT::InputType & input
armarx::RemoteGui::Client::GridLayout RemoteGui_buildInfoGrid()
Builds a RemoteGui grid containing information about registered memories.
dto::RegisterServerResult registerServer(const dto::RegisterServerInput &input) override
Register a new memory server or update an existing entry.
std::map< std::string, std::vector< WaitForServerFuturePtr > > waitForServerFutures
Queued calls to waitForServer.
virtual dto::RegisterServerResult registerServer(const dto::RegisterServerInput &input)
Register a new memory server or update an existing entry.
#define ARMARX_CHECK_EQUAL(lhs, rhs)
This macro evaluates whether lhs is equal (==) rhs and if it turns out to be false it will throw an E...
std::map< std::string, ServerInfo > servers
The registered memories.