RTCUtil.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
19 #include <rtm/RTC.h>
20 #include <rtm/RTCUtil.h>
21 
22 namespace RTC_Utils
23 {
31  bool isDataFlowComponent(CORBA::Object_ptr obj)
32  {
33  OpenRTM::DataFlowComponent_var dfp;
34  dfp = OpenRTM::DataFlowComponent::_narrow(obj);
35  return !CORBA::is_nil(dfp);
36  }
37 
45  bool isFsmParticipant(CORBA::Object_ptr obj)
46  {
47  RTC::FsmParticipant_var fsmp;
48  fsmp = RTC::FsmParticipant::_narrow(obj);
49  return !CORBA::is_nil(fsmp);
50  }
51 
59  bool isFsmObject(CORBA::Object_ptr obj)
60  {
61  RTC::FsmObject_var fsm;
62  fsm = RTC::FsmObject::_narrow(obj);
63  return !CORBA::is_nil(fsm);
64  }
65 
73  bool isMultiModeObject(CORBA::Object_ptr obj)
74  {
75  RTC::MultiModeObject_var mmc;
76  mmc = RTC::MultiModeObject::_narrow(obj);
77  return !CORBA::is_nil(mmc);
78  }
79 }; // namespace RTC_Utils
80 
bool isDataFlowComponent(CORBA::Object_ptr obj)
Confirm whether specified RT-Component is DataFlowComponent.
Definition: RTCUtil.cpp:31
bool isMultiModeObject(CORBA::Object_ptr obj)
Confirm whether specified RT-Component is multiModeComponent.
Definition: RTCUtil.cpp:73
RTComponent utils.
Utility functions for RT-Component.
Definition: RTCUtil.cpp:22
bool isFsmParticipant(CORBA::Object_ptr obj)
Confirm whether specified RT-Component is FsmParticipant.
Definition: RTCUtil.cpp:45
bool isFsmObject(CORBA::Object_ptr obj)
Confirm whether specified RT-Component is Fsm.
Definition: RTCUtil.cpp:59
RTComponent header.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:00