RTC Toolkit  2.0.0
Public Types | Public Member Functions | List of all members
rtctk::componentFramework::StateSubscriber Class Reference

Class used to subscribe to state-changed-topic using MAL. More...

#include <stateSubscriber.hpp>

Public Types

using Callback = std::function< void(double time, const std::string &name, const std::string &state)>
 

Public Member Functions

 StateSubscriber (const elt::mal::Uri &uri, Callback on_state_change)
 
 StateSubscriber (const std::vector< elt::mal::Uri > &uri_list, Callback on_state_change)
 
 StateSubscriber (const StateSubscriber &other)=delete
 
StateSubscriberoperator= (const StateSubscriber &other)=delete
 
 StateSubscriber (StateSubscriber &&other)=default
 
StateSubscriberoperator= (StateSubscriber &&other)=default
 
virtual ~StateSubscriber ()=default
 

Detailed Description

Class used to subscribe to state-changed-topic using MAL.

Member Typedef Documentation

◆ Callback

using rtctk::componentFramework::StateSubscriber::Callback = std::function<void(double time, const std::string& name, const std::string& state)>

Constructor & Destructor Documentation

◆ StateSubscriber() [1/4]

rtctk::componentFramework::StateSubscriber::StateSubscriber ( const elt::mal::Uri &  uri,
Callback  on_state_change 
)

◆ StateSubscriber() [2/4]

rtctk::componentFramework::StateSubscriber::StateSubscriber ( const std::vector< elt::mal::Uri > &  uri_list,
Callback  on_state_change 
)

◆ StateSubscriber() [3/4]

rtctk::componentFramework::StateSubscriber::StateSubscriber ( const StateSubscriber other)
delete

◆ StateSubscriber() [4/4]

rtctk::componentFramework::StateSubscriber::StateSubscriber ( StateSubscriber &&  other)
default

◆ ~StateSubscriber()

virtual rtctk::componentFramework::StateSubscriber::~StateSubscriber ( )
virtualdefault

Member Function Documentation

◆ operator=() [1/2]

StateSubscriber& rtctk::componentFramework::StateSubscriber::operator= ( const StateSubscriber other)
delete

◆ operator=() [2/2]

StateSubscriber& rtctk::componentFramework::StateSubscriber::operator= ( StateSubscriber &&  other)
default

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