WavPlayer.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00010 #include "WavPlayer.h"
00011 
00012 // Module specification
00013 // <rtc-template block="module_spec">
00014 static const char* wavplayer_spec[] =
00015   {
00016     "implementation_id", "WavPlayer",
00017     "type_name",         "WavPlayer",
00018     "description",       "wave file player",
00019     "version",           HRPSYS_PACKAGE_VERSION,
00020     "vendor",            "AIST",
00021     "category",          "example",
00022     "activity_type",     "DataFlowComponent",
00023     "max_instance",      "10",
00024     "language",          "C++",
00025     "lang_type",         "compile",
00026     // Configuration variables
00027 
00028     ""
00029   };
00030 // </rtc-template>
00031 
00032 WavPlayer::WavPlayer(RTC::Manager* manager)
00033   : RTC::DataFlowComponentBase(manager),
00034     // <rtc-template block="initializer">
00035     m_WavPlayerServicePort("WavPlayerService"),
00036     // </rtc-template>
00037         dummy(0)
00038 {
00039 }
00040 
00041 WavPlayer::~WavPlayer()
00042 {
00043 }
00044 
00045 
00046 
00047 RTC::ReturnCode_t WavPlayer::onInitialize()
00048 {
00049   // Registration: InPort/OutPort/Service
00050   // <rtc-template block="registration">
00051   // Set InPort buffers
00052   
00053   // Set OutPort buffer
00054   
00055   // Set service provider to Ports
00056   m_WavPlayerServicePort.registerProvider("service0", "WavPlayerService", m_service0);
00057   
00058   // Set service consumers to Ports
00059   
00060   // Set CORBA Service Ports
00061   addPort(m_WavPlayerServicePort);
00062   
00063   // </rtc-template>
00064 
00065   // <rtc-template block="bind_config">
00066   // Bind variables and configuration variable
00067   
00068   // </rtc-template>
00069 
00070   return RTC::RTC_OK;
00071 }
00072 
00073 
00074 
00075 /*
00076 RTC::ReturnCode_t WavPlayer::onFinalize()
00077 {
00078   return RTC::RTC_OK;
00079 }
00080 */
00081 
00082 /*
00083 RTC::ReturnCode_t WavPlayer::onStartup(RTC::UniqueId ec_id)
00084 {
00085   return RTC::RTC_OK;
00086 }
00087 */
00088 
00089 /*
00090 RTC::ReturnCode_t WavPlayer::onShutdown(RTC::UniqueId ec_id)
00091 {
00092   return RTC::RTC_OK;
00093 }
00094 */
00095 
00096 /*
00097 RTC::ReturnCode_t WavPlayer::onActivated(RTC::UniqueId ec_id)
00098 {
00099   return RTC::RTC_OK;
00100 }
00101 */
00102 
00103 /*
00104 RTC::ReturnCode_t WavPlayer::onDeactivated(RTC::UniqueId ec_id)
00105 {
00106   return RTC::RTC_OK;
00107 }
00108 */
00109 
00110 /*
00111 RTC::ReturnCode_t WavPlayer::onExecute(RTC::UniqueId ec_id)
00112 {
00113     return RTC::RTC_OK;
00114 }
00115 */
00116 
00117 /*
00118 RTC::ReturnCode_t WavPlayer::onAborting(RTC::UniqueId ec_id)
00119 {
00120   return RTC::RTC_OK;
00121 }
00122 */
00123 
00124 /*
00125 RTC::ReturnCode_t WavPlayer::onError(RTC::UniqueId ec_id)
00126 {
00127   return RTC::RTC_OK;
00128 }
00129 */
00130 
00131 /*
00132 RTC::ReturnCode_t WavPlayer::onReset(RTC::UniqueId ec_id)
00133 {
00134   return RTC::RTC_OK;
00135 }
00136 */
00137 
00138 /*
00139 RTC::ReturnCode_t WavPlayer::onStateUpdate(RTC::UniqueId ec_id)
00140 {
00141   return RTC::RTC_OK;
00142 }
00143 */
00144 
00145 /*
00146 RTC::ReturnCode_t WavPlayer::onRateChanged(RTC::UniqueId ec_id)
00147 {
00148   return RTC::RTC_OK;
00149 }
00150 */
00151 
00152 
00153 
00154 extern "C"
00155 {
00156 
00157   void WavPlayerInit(RTC::Manager* manager)
00158   {
00159     RTC::Properties profile(wavplayer_spec);
00160     manager->registerFactory(profile,
00161                              RTC::Create<WavPlayer>,
00162                              RTC::Delete<WavPlayer>);
00163   }
00164 
00165 };
00166 
00167 


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Wed Sep 6 2017 02:35:56