MyServiceProvider.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
10 #include "MyServiceProvider.h"
11 
12 // Module specification
13 // <rtc-template block="module_spec">
14 static const char* myserviceprovider_spec[] =
15  {
16  "implementation_id", "MyServiceProvider",
17  "type_name", "MyServiceProvider",
18  "description", "MyService Provider Sample component",
19  "version", "0.1",
20  "vendor", "AIST",
21  "category", "Generic",
22  "activity_type", "DataFlowComponent",
23  "max_instance", "10",
24  "language", "C++",
25  "lang_type", "compile",
26  ""
27  };
28 // </rtc-template>
29 
31  : RTC::DataFlowComponentBase(manager),
32  // <rtc-template block="initializer">
33  m_MyServicePort("MyService")
34  // </rtc-template>
35 {
36 }
37 
39 {
40 }
41 
42 
44 {
45  // Registration: InPort/OutPort/Service
46  // <rtc-template block="registration">
47  // Set InPort buffers
48 
49  // Set OutPort buffer
50 
51  // Set service provider to Ports
52  m_MyServicePort.registerProvider("myservice0", "MyService", m_myservice0);
53 
54  // Set service consumers to Ports
55 
56  // Set CORBA Service Ports
58 
59  // </rtc-template>
60 
61  return RTC::RTC_OK;
62 }
63 
64 /*
65 RTC::ReturnCode_t MyServiceProvider::onFinalize()
66 {
67  return RTC::RTC_OK;
68 }
69 */
70 
71 /*
72 RTC::ReturnCode_t MyServiceProvider::onStartup(RTC::UniqueId ec_id)
73 {
74  return RTC::RTC_OK;
75 }
76 */
77 
78 /*
79 RTC::ReturnCode_t MyServiceProvider::onShutdown(RTC::UniqueId ec_id)
80 {
81  return RTC::RTC_OK;
82 }
83 */
84 
85 /*
86 RTC::ReturnCode_t MyServiceProvider::onActivated(RTC::UniqueId ec_id)
87 {
88  return RTC::RTC_OK;
89 }
90 */
91 
92 /*
93 RTC::ReturnCode_t MyServiceProvider::onDeactivated(RTC::UniqueId ec_id)
94 {
95  return RTC::RTC_OK;
96 }
97 */
98 
99 /*
100 RTC::ReturnCode_t MyServiceProvider::onExecute(RTC::UniqueId ec_id)
101 {
102  return RTC::RTC_OK;
103 }
104 */
105 
106 /*
107 RTC::ReturnCode_t MyServiceProvider::onAborting(RTC::UniqueId ec_id)
108 {
109  return RTC::RTC_OK;
110 }
111 */
112 
113 /*
114 RTC::ReturnCode_t MyServiceProvider::onError(RTC::UniqueId ec_id)
115 {
116  return RTC::RTC_OK;
117 }
118 */
119 
120 /*
121 RTC::ReturnCode_t MyServiceProvider::onReset(RTC::UniqueId ec_id)
122 {
123  return RTC::RTC_OK;
124 }
125 */
126 
127 /*
128 RTC::ReturnCode_t MyServiceProvider::onStateUpdate(RTC::UniqueId ec_id)
129 {
130  return RTC::RTC_OK;
131 }
132 */
133 
134 /*
135 RTC::ReturnCode_t MyServiceProvider::onRateChanged(RTC::UniqueId ec_id)
136 {
137  return RTC::RTC_OK;
138 }
139 */
140 
141 
142 
143 extern "C"
144 {
145 
147  {
149  manager->registerFactory(profile,
150  RTC::Create<MyServiceProvider>,
151  RTC::Delete<MyServiceProvider>);
152  }
153 
154 };
155 
156 
RT-Component.
MyServiceSVC_impl m_myservice0
DataFlowComponentBase class.
ReturnCode_t
Definition: doil.h:53
void MyServiceProviderInit(RTC::Manager *manager)
static const char * myserviceprovider_spec[]
Manager class.
Definition: Manager.h:80
MyServiceProvider(RTC::Manager *manager)
RTC::CorbaPort m_MyServicePort
Class represents a set of properties.
Definition: Properties.h:101
bool addPort(PortBase &port)
[local interface] Register Port
Definition: RTObject.cpp:1558
MyService Provider Sample component.
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
Register RT-Component Factory.
Definition: Manager.cpp:433
virtual RTC::ReturnCode_t onInitialize()
Callback function to initialize.
bool registerProvider(const char *instance_name, const char *type_name, PortableServer::RefCountServantBase &provider)
Register the provider.
Definition: CorbaPort.cpp:90


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:53