MemoryStatusHandlerBase.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <mutex>
4
5
#include <
RobotAPI/libraries/armem/core/wm/memory_definitions.h
>
6
7
#include <
armarx/view_selection/client/services/SimpleStatusHandler.h
>
8
9
namespace
armarx::view_selection::client
10
{
11
12
/**
13
* @brief Turns a queried piece of the GazeTargetStatus core segment into dispatched updates.
14
*
15
* Shared by both delivery modes so the conversion, the ordering and the dispatch exist once,
16
* and a subscription and a poll deliver exactly the same thing to a client.
17
*/
18
class
MemoryStatusHandlerBase
:
virtual
public
SimpleStatusHandler
19
{
20
protected
:
21
/// Dispatches every GazeTargetStatus instance found, oldest first.
22
void
handleMemory
(
const
armem::wm::Memory
&
memory
);
23
24
private
:
25
/// Updates are handled one at a time, in order.
26
std::mutex statusHandlingMutex;
27
};
28
29
}
// namespace armarx::view_selection::client
SimpleStatusHandler.h
armarx::armem::wm::Memory
Client-side working memory.
Definition
memory_definitions.h:136
armarx::view_selection::client::MemoryStatusHandlerBase
Turns a queried piece of the GazeTargetStatus core segment into dispatched updates.
Definition
MemoryStatusHandlerBase.h:19
armarx::view_selection::client::MemoryStatusHandlerBase::handleMemory
void handleMemory(const armem::wm::Memory &memory)
Dispatches every GazeTargetStatus instance found, oldest first.
Definition
MemoryStatusHandlerBase.cpp:21
armarx::view_selection::client::SimpleStatusHandler
Dispatches gaze target lifecycle updates to registered callbacks.
Definition
SimpleStatusHandler.h:18
memory_definitions.h
armarx::view_selection::client
Definition
ComponentPlugin.cpp:31
armarx::view_selection::memory
Definition
Writer.cpp:18
armarx
view_selection
client
services
MemoryStatusHandlerBase.h
Generated by
1.13.2