RTCUtil.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00019 #include <rtm/RTC.h>
00020 #include <rtm/RTCUtil.h>
00021 
00022 namespace RTC_Utils
00023 {
00031   bool isDataFlowComponent(CORBA::Object_ptr obj)
00032   {
00033     OpenRTM::DataFlowComponent_var dfp;
00034     dfp = OpenRTM::DataFlowComponent::_narrow(obj);
00035     return !CORBA::is_nil(dfp);
00036   }
00037   
00045   bool isFsmParticipant(CORBA::Object_ptr obj)
00046   {
00047     RTC::FsmParticipant_var fsmp;
00048     fsmp = RTC::FsmParticipant::_narrow(obj);
00049     return !CORBA::is_nil(fsmp);
00050   }
00051   
00059   bool isFsmObject(CORBA::Object_ptr obj)
00060   {
00061     RTC::FsmObject_var fsm;
00062     fsm = RTC::FsmObject::_narrow(obj);
00063     return !CORBA::is_nil(fsm);
00064   }
00065   
00073   bool isMultiModeObject(CORBA::Object_ptr obj)
00074   {
00075     RTC::MultiModeObject_var mmc;
00076     mmc = RTC::MultiModeObject::_narrow(obj);
00077     return !CORBA::is_nil(mmc);
00078   }
00079 }; // namespace RTC_Utils
00080 


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:38