WavPlayer.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
10 #include "WavPlayer.h"
11 
12 // Module specification
13 // <rtc-template block="module_spec">
14 static const char* wavplayer_spec[] =
15  {
16  "implementation_id", "WavPlayer",
17  "type_name", "WavPlayer",
18  "description", "wave file player",
19  "version", HRPSYS_PACKAGE_VERSION,
20  "vendor", "AIST",
21  "category", "example",
22  "activity_type", "DataFlowComponent",
23  "max_instance", "10",
24  "language", "C++",
25  "lang_type", "compile",
26  // Configuration variables
27 
28  ""
29  };
30 // </rtc-template>
31 
33  : RTC::DataFlowComponentBase(manager),
34  // <rtc-template block="initializer">
35  m_WavPlayerServicePort("WavPlayerService"),
36  // </rtc-template>
37  dummy(0)
38 {
39 }
40 
42 {
43 }
44 
45 
46 
47 RTC::ReturnCode_t WavPlayer::onInitialize()
48 {
49  // Registration: InPort/OutPort/Service
50  // <rtc-template block="registration">
51  // Set InPort buffers
52 
53  // Set OutPort buffer
54 
55  // Set service provider to Ports
56  m_WavPlayerServicePort.registerProvider("service0", "WavPlayerService", m_service0);
57 
58  // Set service consumers to Ports
59 
60  // Set CORBA Service Ports
62 
63  // </rtc-template>
64 
65  // <rtc-template block="bind_config">
66  // Bind variables and configuration variable
67 
68  // </rtc-template>
69 
70  return RTC::RTC_OK;
71 }
72 
73 
74 
75 /*
76 RTC::ReturnCode_t WavPlayer::onFinalize()
77 {
78  return RTC::RTC_OK;
79 }
80 */
81 
82 /*
83 RTC::ReturnCode_t WavPlayer::onStartup(RTC::UniqueId ec_id)
84 {
85  return RTC::RTC_OK;
86 }
87 */
88 
89 /*
90 RTC::ReturnCode_t WavPlayer::onShutdown(RTC::UniqueId ec_id)
91 {
92  return RTC::RTC_OK;
93 }
94 */
95 
96 /*
97 RTC::ReturnCode_t WavPlayer::onActivated(RTC::UniqueId ec_id)
98 {
99  return RTC::RTC_OK;
100 }
101 */
102 
103 /*
104 RTC::ReturnCode_t WavPlayer::onDeactivated(RTC::UniqueId ec_id)
105 {
106  return RTC::RTC_OK;
107 }
108 */
109 
110 /*
111 RTC::ReturnCode_t WavPlayer::onExecute(RTC::UniqueId ec_id)
112 {
113  return RTC::RTC_OK;
114 }
115 */
116 
117 /*
118 RTC::ReturnCode_t WavPlayer::onAborting(RTC::UniqueId ec_id)
119 {
120  return RTC::RTC_OK;
121 }
122 */
123 
124 /*
125 RTC::ReturnCode_t WavPlayer::onError(RTC::UniqueId ec_id)
126 {
127  return RTC::RTC_OK;
128 }
129 */
130 
131 /*
132 RTC::ReturnCode_t WavPlayer::onReset(RTC::UniqueId ec_id)
133 {
134  return RTC::RTC_OK;
135 }
136 */
137 
138 /*
139 RTC::ReturnCode_t WavPlayer::onStateUpdate(RTC::UniqueId ec_id)
140 {
141  return RTC::RTC_OK;
142 }
143 */
144 
145 /*
146 RTC::ReturnCode_t WavPlayer::onRateChanged(RTC::UniqueId ec_id)
147 {
148  return RTC::RTC_OK;
149 }
150 */
151 
152 
153 
154 extern "C"
155 {
156 
158  {
160  manager->registerFactory(profile,
161  RTC::Create<WavPlayer>,
162  RTC::Delete<WavPlayer>);
163  }
164 
165 };
166 
167 
png_infop png_charpp int png_charpp profile
void WavPlayerInit(RTC::Manager *manager)
Definition: WavPlayer.cpp:157
WavPlayer(RTC::Manager *manager)
Constructor.
Definition: WavPlayer.cpp:32
static const char * wavplayer_spec[]
Definition: WavPlayer.cpp:14
RTC::CorbaPort m_WavPlayerServicePort
Definition: WavPlayer.h:118
WavPlayerService_impl m_service0
Definition: WavPlayer.h:124
bool addPort(PortBase &port)
virtual ~WavPlayer()
Destructor.
Definition: WavPlayer.cpp:41
virtual RTC::ReturnCode_t onInitialize()
Definition: WavPlayer.cpp:47
bool registerFactory(coil::Properties &profile, RtcNewFunc new_func, RtcDeleteFunc delete_func)
null component
bool registerProvider(const char *instance_name, const char *type_name, PortableServer::RefCountServantBase &provider)


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51