#include <RtcSubscriber.h>
Inheritance diagram for RTM::SubscriberBase:
Public Member Functions | |
SubscriberBase (RTM::OutPortBase *parent, SubscriptionProfile &profile) | |
~SubscriberBase () | |
SubscriberBase class destructor. | |
virtual int | open (void *args) |
Start SubscriberBase service. | |
virtual int | close (unsigned long flags) |
Stop SubscriberBase service. | |
virtual int | svc (void)=0 |
Main part of SubscriberBase service (pure virtual method). | |
virtual bool | update ()=0 |
Update data to subscribers. (pure virtual method). | |
virtual void | release () |
Stop subscriber service. | |
bool | is_running () |
Get SubscriberProfile. Get InPort's object reference which subscribe this OutPort. Get InPort's object reference which subscribe this OutPort. | |
virtual void | stop_thread () |
Stop this task thread. Actually this method set member variable "m_Running" to false. User have to implement thread stop logic. | |
virtual SubscriptionProfile | getSubsProfile () |
virtual void | setSubsProfile (SubscriptionProfile &subs) |
virtual SubscriptionType | getType () |
virtual bool | setType (SubscriptionType type) |
virtual SubscriptionID | getId () |
virtual bool | setId (const char *id) |
virtual bool | setId (std::string id) |
virtual InPort_ptr | getInPort () |
virtual bool | setInPort (InPort_ptr in_port) |
virtual OutPort_ptr | getOutPort () |
virtual bool | setOutPort (OutPort_ptr out_port) |
virtual bool | getEventBase () |
virtual bool | setEventBase (bool event_base) |
Protected Attributes | |
RTM::OutPortBase * | m_pParent |
Parent outport object reference. | |
bool | m_Running |
Thread activity flag (true=running, false=stop). | |
NewData | m_NewData |
SubscriptionProfile | m_Profile |
Classes | |
struct | NewData |
A base class of Subscriber*. Variation of Subscriber* which implements details of subscriber inherits this SubscriberBase class.
|
|
|
SubscriberBase class destructor.
|
|
Stop SubscriberBase service.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get SubscriberProfile. Get InPort's object reference which subscribe this OutPort. Get InPort's object reference which subscribe this OutPort. Is thread running or not.
|
|
Start SubscriberBase service.
|
|
Stop subscriber service.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Stop this task thread. Actually this method set member variable "m_Running" to false. User have to implement thread stop logic.
|
|
Main part of SubscriberBase service (pure virtual method).
Implemented in RTM::SubscriberOnce, RTM::SubscriberPeriodic, RTM::SubscriberNew, RTM::SubscriberTriggerd, RTM::SubscriberPeriodicNew, RTM::SubscriberNewPeriodic, RTM::SubscriberPeriodicTriggerd, and RTM::SubscriberTriggerdPeriodic. |
|
Update data to subscribers. (pure virtual method).
Implemented in RTM::SubscriberOnce, RTM::SubscriberPeriodic, RTM::SubscriberNew, RTM::SubscriberTriggerd, RTM::SubscriberPeriodicNew, RTM::SubscriberNewPeriodic, RTM::SubscriberPeriodicTriggerd, and RTM::SubscriberTriggerdPeriodic. |
|
|
|
Parent outport object reference.
|
|
|
|
Thread activity flag (true=running, false=stop).
|