MemoryStatusHandlerBase Class Reference

Turns a queried piece of the GazeTargetStatus core segment into dispatched updates. More...

#include <armarx/view_selection/client/services/MemoryStatusHandlerBase.h>

+ Inheritance diagram for MemoryStatusHandlerBase:

Protected Member Functions

void handleMemory (const armem::wm::Memory &memory)
 Dispatches every GazeTargetStatus instance found, oldest first.
 

Additional Inherited Members

- Public Types inherited from StatusHandlerInterface
using Callback = std::function<void(const gaze_targets::GazeTargetStatus&)>
 
- Public Member Functions inherited from SimpleStatusHandler
void handleStatus (const gaze_targets::GazeTargetStatus &status)
 Logs the update and hands it to the matching callbacks.
 
void onAborted (const Callback &callback) override
 
void onAny (const Callback &callback) override
 Called for every update, whatever its status.
 
void onPreempted (const Callback &callback) override
 
void onReached (const Callback &callback) override
 
void onReleased (const Callback &callback) override
 
void onRequested (const Callback &callback) override
 
void onScheduled (const Callback &callback) override
 
- Public Member Functions inherited from StatusHandlerInterface
virtual ~StatusHandlerInterface ()=default
 

Detailed Description

Turns a queried piece of the GazeTargetStatus core segment into dispatched updates.

Shared by both delivery modes so the conversion, the ordering and the dispatch exist once, and a subscription and a poll deliver exactly the same thing to a client.

Definition at line 18 of file MemoryStatusHandlerBase.h.

Member Function Documentation

◆ handleMemory()

void handleMemory ( const armem::wm::Memory & memory)
protected

Dispatches every GazeTargetStatus instance found, oldest first.

Definition at line 21 of file MemoryStatusHandlerBase.cpp.

+ Here is the call graph for this function:

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