SimpleStatusHandler Class Reference

Dispatches gaze target lifecycle updates to registered callbacks. More...

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

+ Inheritance diagram for SimpleStatusHandler:

Public Member Functions

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
 

Additional Inherited Members

- Public Types inherited from StatusHandlerInterface
using Callback = std::function<void(const gaze_targets::GazeTargetStatus&)>
 

Detailed Description

Dispatches gaze target lifecycle updates to registered callbacks.

Base of both delivery modes (MemorySubscriber, MemoryPolling), so instrumentation and dispatch exist once regardless of how the updates were obtained.

Definition at line 17 of file SimpleStatusHandler.h.

Member Function Documentation

◆ handleStatus()

void handleStatus ( const gaze_targets::GazeTargetStatus & status)

Logs the update and hands it to the matching callbacks.

Definition at line 65 of file SimpleStatusHandler.cpp.

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

◆ onAborted()

void onAborted ( const Callback & callback)
overridevirtual

Implements StatusHandlerInterface.

Definition at line 51 of file SimpleStatusHandler.cpp.

◆ onAny()

void onAny ( const Callback & callback)
overridevirtual

Called for every update, whatever its status.

Implements StatusHandlerInterface.

Definition at line 58 of file SimpleStatusHandler.cpp.

◆ onPreempted()

void onPreempted ( const Callback & callback)
overridevirtual

Implements StatusHandlerInterface.

Definition at line 37 of file SimpleStatusHandler.cpp.

◆ onReached()

void onReached ( const Callback & callback)
overridevirtual

Implements StatusHandlerInterface.

Definition at line 30 of file SimpleStatusHandler.cpp.

◆ onReleased()

void onReleased ( const Callback & callback)
overridevirtual

Implements StatusHandlerInterface.

Definition at line 44 of file SimpleStatusHandler.cpp.

◆ onRequested()

void onRequested ( const Callback & callback)
overridevirtual

Implements StatusHandlerInterface.

Definition at line 16 of file SimpleStatusHandler.cpp.

◆ onScheduled()

void onScheduled ( const Callback & callback)
overridevirtual

Implements StatusHandlerInterface.

Definition at line 23 of file SimpleStatusHandler.cpp.

Member Data Documentation

◆ aborted

std::vector<Callback> aborted

Definition at line 41 of file SimpleStatusHandler.h.

◆ any

std::vector<Callback> any

Definition at line 42 of file SimpleStatusHandler.h.

◆ preempted

std::vector<Callback> preempted

Definition at line 39 of file SimpleStatusHandler.h.

◆ reached

std::vector<Callback> reached

Definition at line 38 of file SimpleStatusHandler.h.

◆ released

std::vector<Callback> released

Definition at line 40 of file SimpleStatusHandler.h.

◆ requested

std::vector<Callback> requested

Definition at line 36 of file SimpleStatusHandler.h.

◆ scheduled

std::vector<Callback> scheduled

Definition at line 37 of file SimpleStatusHandler.h.


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