MemorySubscriber Class Reference

Event-based delivery: subscribes to the requester's own slice of GazeTargetStatus. More...

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

+ Inheritance diagram for MemorySubscriber:

Public Member Functions

 MemorySubscriber (const MemorySubscriber &)=delete
 
 MemorySubscriber (const std::string &providerSegmentName, armem::client::MemoryNameSystem &mns)
 
 MemorySubscriber (MemorySubscriber &&)=delete
 
MemorySubscriberoperator= (const MemorySubscriber &)=delete
 
MemorySubscriberoperator= (MemorySubscriber &&)=delete
 
 ~MemorySubscriber () override
 
- 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
 

Additional Inherited Members

- Public Types inherited from StatusHandlerInterface
using Callback = std::function<void(const gaze_targets::GazeTargetStatus&)>
 
- Protected Member Functions inherited from MemoryStatusHandlerBase
void handleMemory (const armem::wm::Memory &memory)
 Dispatches every GazeTargetStatus instance found, oldest first.
 

Detailed Description

Event-based delivery: subscribes to the requester's own slice of GazeTargetStatus.

Needs a parent deriving from armem::client::plugins::ListeningPluginUser – without one there is no memory update topic to subscribe to, and MemoryPolling is the alternative.

Non-copyable and non-movable: it hands this to the subscription.

Definition at line 28 of file MemorySubscriber.h.

Constructor & Destructor Documentation

◆ MemorySubscriber() [1/3]

MemorySubscriber ( const std::string & providerSegmentName,
armem::client::MemoryNameSystem & mns )
Parameters
providerSegmentNameThe provider segment the client commits its gaze targets to.

Definition at line 18 of file MemorySubscriber.cpp.

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

◆ MemorySubscriber() [2/3]

MemorySubscriber ( const MemorySubscriber & )
delete
+ Here is the call graph for this function:

◆ MemorySubscriber() [3/3]

+ Here is the call graph for this function:

◆ ~MemorySubscriber()

~MemorySubscriber ( )
overridedefault

Member Function Documentation

◆ operator=() [1/2]

MemorySubscriber & operator= ( const MemorySubscriber & )
delete
+ Here is the call graph for this function:

◆ operator=() [2/2]

MemorySubscriber & operator= ( MemorySubscriber && )
delete
+ Here is the call graph for this function:

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