PortCallback.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef RTC_PORTCALLBACK_H
21 #define RTC_PORTCALLBACK_H
22 
23 class cdrStream;
24 
25 namespace RTC
26 {
27  //============================================================
28  // callback functor base classes
56  {
57  public:
71  virtual ~ConnectionCallback(void){}
72 
94  virtual void operator()(RTC::ConnectorProfile& profile) = 0;
95  };
96 
97 
125  {
126  public:
140  virtual ~DisconnectCallback(void){}
162  virtual void operator()(const char* connector_id) = 0;
163  };
164 
165 
191  template <class DataType>
192  class OnWrite
193  {
194  public:
208  virtual ~OnWrite(void){}
209 
230  virtual void operator()(const DataType& value) = 0;
231  };
232 
233 
257  template <class DataType>
259  {
273  virtual ~OnWriteConvert(void){}
274 
297  virtual DataType operator()(const DataType& value) = 0;
298  };
299 
300 
322  template <class DataType>
323  struct OnRead
324  {
340  virtual ~OnRead(void){}
341 
358  virtual void operator()() = 0;
359  };
360 
384  template <class DataType>
386  {
402  virtual ~OnReadConvert(void){}
403 
430  virtual DataType operator()(const DataType& value) = 0;
431  };
432 
433 
434 };
435 #endif // RTC_PORTCALLBACK_H
virtual void operator()(RTC::ConnectorProfile &profile)=0
Callback method.
RT-Component.
virtual ~ConnectionCallback(void)
Destructor.
Definition: PortCallback.h:71
Data convert callback abstract class on write()
Definition: PortCallback.h:258
virtual ~OnReadConvert(void)
Destructor.
Definition: PortCallback.h:402
virtual ~OnWrite(void)
Destructor.
Definition: PortCallback.h:208
Data convert callback abstract class on read()
Definition: PortCallback.h:385
virtual ~OnWriteConvert(void)
Destructor.
Definition: PortCallback.h:273
Callback abstract class on write()
Definition: PortCallback.h:192
virtual ~OnRead(void)
Destructor.
Definition: PortCallback.h:340
virtual ~DisconnectCallback(void)
Destructor.
Definition: PortCallback.h:140
Callback functor abstract for connect/notify_connect() funcs.
Definition: PortCallback.h:55
Callback abstract class on read()
Definition: PortCallback.h:323
Callback functor abstract for disconnect/notify_disconnect() funcs.
Definition: PortCallback.h:124


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:44