rtc/DataFlowComponentBase.h
Go to the documentation of this file.
1 // -*- C++ -*-
20 #ifndef DataFlowComponentBase_h
21 #define DataFlowComponentBase_h
22 
23 #include <memory>
24 #include <rtc/IRTC.h>
25 #include <rtc/IDataFlowComponent.h>
26 
27 namespace RTC
28 {
29 namespace Local
30 {
41  : public virtual IDataFlowComponent
42  {
43  public:
50 
52  virtual ~DataFlowComponentBase();
53 
54  //------------------------------------------------------------
55  // RTObject
56  //------------------------------------------------------------
57  virtual bool is_alive(IExecutionContext& ec);
58  virtual ReturnCode_t initialize();
59  virtual ReturnCode_t finalize();
60  virtual ReturnCode_t exit();
61  virtual const ComponentProfile& get_component_profile();
62  virtual PortServiceList& get_ports();
63  virtual ExecutionContextHandle_t attach_context(IExecutionContext& ec);
64  virtual ReturnCode_t detach_context(ExecutionContextHandle_t ec_handle);
65  virtual IExecutionContext& get_context(ExecutionContextHandle_t ec_handle);
66  virtual ExecutionContextList& get_owned_contexts() const;
67  virtual ExecutionContextList& get_participating_contexts() const;
68 
69  //------------------------------------------------------------
70  // ComponentAction
71  //------------------------------------------------------------
72  virtual ReturnCode_t on_initialize();
73  virtual ReturnCode_t on_finalize();
74  virtual ReturnCode_t on_startup(ExecutionContextHandle_t ec_handle);
75  virtual ReturnCode_t on_shutdown(ExecutionContextHandle_t ec_handle);
76  virtual ReturnCode_t on_activated(ExecutionContextHandle_t ec_handle);
77  virtual ReturnCode_t on_deactivated(ExecutionContextHandle_t ec_handle);
78  virtual ReturnCode_t on_aborting(ExecutionContextHandle_t ec_handle);
79  virtual ReturnCode_t on_error(ExecutionContextHandle_t ec_handle);
80  virtual ReturnCode_t on_reset(ExecutionContextHandle_t ec_handle);
81 
82  //------------------------------------------------------------
83  // DataFlowComponentAction
84  //------------------------------------------------------------
85  virtual ReturnCode_t on_execute(ExecutionContextHandle_t ec_handle);
86  virtual ReturnCode_t on_state_update(ExecutionContextHandle_t ec_handle);
87  virtual ReturnCode_t on_rate_changed(ExecutionContextHandle_t ec_handle);
88 
89 
90  protected:
91 
92  private:
93  class DataFlowComponentImpl;
94  std::auto_ptr<DataFlowComponentImpl> pimpl;
95  };
96 }; // namespace Local
97 }; // namespace RTC
98 #endif // DataFlowComponentBase_h
99 
virtual ExecutionContextList & get_owned_contexts() const
virtual ExecutionContextHandle_t attach_context(IExecutionContext &ec)
EXECUTION_HANDLE_TYPE_NATIVE ExecutionContextHandle_t
Definition: IRTC.h:63
virtual ReturnCode_t initialize()
RT-Component.
virtual ReturnCode_t on_initialize()
virtual ReturnCode_t on_shutdown(ExecutionContextHandle_t ec_handle)
std::auto_ptr< DataFlowComponentImpl > pimpl
RTC::Local::ExecutionContextHandle_t ExecutionContextHandle_t
virtual const ComponentProfile & get_component_profile()
IDataFlowComponent interface class.
virtual PortServiceList & get_ports()
virtual ReturnCode_t on_reset(ExecutionContextHandle_t ec_handle)
virtual ReturnCode_t detach_context(ExecutionContextHandle_t ec_handle)
virtual ReturnCode_t on_deactivated(ExecutionContextHandle_t ec_handle)
IDataFlowComponent class.
std::vector< ExecutionContext * > ExecutionContextList
Definition: IRTC.h:69
virtual ReturnCode_t on_rate_changed(ExecutionContextHandle_t ec_handle)
virtual ReturnCode_t on_activated(ExecutionContextHandle_t ec_handle)
RTC::Local::ComponentProfile ComponentProfile
virtual IExecutionContext & get_context(ExecutionContextHandle_t ec_handle)
ReturnCode_t
Definition: IRTC.h:30
virtual ReturnCode_t on_execute(ExecutionContextHandle_t ec_handle)
virtual ExecutionContextList & get_participating_contexts() const
RTC::Local::IExecutionContext IExecutionContext
RTC::Local::ExecutionContextList ExecutionContextList
virtual ReturnCode_t on_error(ExecutionContextHandle_t ec_handle)
virtual ReturnCode_t finalize()
virtual ReturnCode_t on_state_update(ExecutionContextHandle_t ec_handle)
RTC interfaces.
std::vector< IPortService * > PortServiceList
Definition: IPortService.h:39
virtual ReturnCode_t on_startup(ExecutionContextHandle_t ec_handle)
RTC::Local::PortServiceList PortServiceList
virtual ReturnCode_t on_aborting(ExecutionContextHandle_t ec_handle)
IExecutionContext class.
virtual ReturnCode_t on_finalize()
virtual bool is_alive(IExecutionContext &ec)
virtual ReturnCode_t exit()


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