18 #ifndef RTC_RTOBJECT_H 19 #define RTC_RTOBJECT_H 22 #include <coil/Properties.h> 23 #include <coil/Task.h> 26 #include <rtm/idl/RTCSkel.h> 27 #include <rtm/idl/OpenRTMSkel.h> 43 #define ECOTHER_OFFSET 1000 47 class Configuration_impl;
53 class ExecutionContextBase;
54 using UniqueId = ExecutionContextHandle_t;
91 :
public virtual POA_OpenRTM::DataFlowComponent,
92 public virtual PortableServer::RefCountServantBase
135 RTObject_impl(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa);
183 virtual ReturnCode_t onInitialize();
214 virtual ReturnCode_t onFinalize();
617 ReturnCode_t initialize()
override;
664 ReturnCode_t finalize()
override;
709 ReturnCode_t exit()
override;
744 CORBA::Boolean is_alive(ExecutionContext_ptr exec_context)
override;
773 ExecutionContext_ptr get_context(
UniqueId ec_id)
override;
793 ExecutionContextList* get_owned_contexts()
override;
813 ExecutionContextList* get_participating_contexts()
override;
829 ExecutionContextHandle_t
830 get_context_handle(ExecutionContext_ptr cxt)
override;
862 UniqueId attach_context(ExecutionContext_ptr exec_context)
override;
864 UniqueId bindContext(ExecutionContext_ptr exec_context);
907 ReturnCode_t detach_context(
UniqueId ec_id)
override;
952 PortServiceList* get_ports()
override;
982 ReturnCode_t on_initialize()
override;
1008 ReturnCode_t on_finalize()
override;
1038 ReturnCode_t on_startup(
UniqueId ec_id)
override;
1068 ReturnCode_t on_shutdown(
UniqueId ec_id)
override;
1096 ReturnCode_t on_activated(
UniqueId ec_id)
override;
1125 ReturnCode_t on_deactivated(
UniqueId ec_id)
override;
1159 ReturnCode_t on_aborting(
UniqueId ec_id)
override;
1204 ReturnCode_t on_error(
UniqueId ec_id)
override;
1240 ReturnCode_t on_reset(
UniqueId ec_id)
override;
1287 ReturnCode_t on_execute(
UniqueId ec_id)
override;
1332 ReturnCode_t on_state_update(
UniqueId ec_id)
override;
1370 ReturnCode_t on_rate_changed(
UniqueId ec_id)
override;
1412 SDOPackage::OrganizationList* get_owned_organizations()
override;
1450 char* get_sdo_id()
override;
1485 char* get_sdo_type()
override;
1523 SDOPackage::DeviceProfile* get_device_profile()
override;
1561 SDOPackage::ServiceProfileList* get_service_profiles()
override;
1604 SDOPackage::ServiceProfile* get_service_profile(
const char*
id)
override;
1653 SDOPackage::SDOService_ptr get_sdo_service(
const char*
id)
override;
1744 SDOPackage::Monitoring_ptr get_monitoring()
override;
1781 SDOPackage::OrganizationList* get_organizations()
override;
1814 SDOPackage::NVList* get_status_list()
override;
1852 CORBA::Any* get_status(
const char* name)
override;
1879 return m_profile.instance_name;
1901 void setInstanceName(
const char* instance_name);
1925 return m_profile.type_name;
1950 return m_profile.description;
1976 return m_profile.version;
2001 return m_profile.vendor;
2026 return m_profile.category;
2048 std::vector<std::string> getNamingNames();
2069 void setObjRef(RTObject_ptr rtobj);
2090 RTObject_ptr getObjRef()
const;
2174 template <
typename VarType>
2176 const char* def_val,
2177 bool (*trans)(VarType&,
const char*) = coil::stringTo)
2179 RTC_TRACE((
"bindParameter(%s (default: %s))", param_name, def_val));
2180 m_configsets.bindParameter(param_name, var, def_val, trans);
2274 void updateParameters(
const char* config_set);
2343 bool addPort(PortService_ptr port);
2441 void registerPort(PortService_ptr port);
2503 bool addInPort(
const char* name,
InPortBase& inport);
2504 const std::vector<InPortBase*>&
getInPorts()
const {
return m_inports; }
2505 const std::vector<OutPortBase*>&
getOutPorts()
const {
return m_outports; }
2532 void registerInPort(
const char* name,
InPortBase& inport);
2562 bool addOutPort(
const char* name,
OutPortBase& outport);
2589 void registerOutPort(
const char* name,
OutPortBase& outport);
2680 bool removePort(PortService_ptr port);
2742 void deletePort(PortService_ptr port);
2783 void deletePortByName(
const char* port_name);
2835 ExecutionContext_ptr getExecutionContext(
RTC::UniqueId ec_id);
2944 ReturnCode_t setExecutionRate(
RTC::UniqueId ec_id,
double rate);
3121 bool addSdoServiceProvider(
const SDOPackage::ServiceProfile& prof,
3131 bool removeSdoServiceProvider(
const char*
id);
3140 bool addSdoServiceConsumer(
const SDOPackage::ServiceProfile& prof);
3149 bool removeSdoServiceConsumer(
const char*
id);
3158 void removeSdoServiceConsumerStartThread(
const char*
id);
3238 void setReadAll(
bool read =
true,
bool completion =
false);
3274 void setWriteAll(
bool write =
true,
bool completion =
false);
3292 void finalizePorts();
3305 void finalizeContexts();
3397 bool autoclean =
true);
3399 template <
class Listener>
3410 : m_obj(obj), m_memfunc(memfunc)
3413 void operator()(
UniqueId ec_id)
override 3415 (m_obj.*m_memfunc)(ec_id);
3422 Noname* listener(
new Noname(obj, memfunc));
3423 addPreComponentActionListener(listener_type, listener,
true);
3447 removePreComponentActionListener(
3526 addPostComponentActionListener(
3529 bool autoclean =
true);
3531 template <
class Listener>
3543 : m_obj(obj), m_memfunc(memfunc)
3546 void operator()(
UniqueId ec_id, ReturnCode_t ret)
override 3548 (m_obj.*m_memfunc)(ec_id, ret);
3556 Noname* listener(
new Noname(obj, memfunc));
3557 addPostComponentActionListener(listener_type, listener,
true);
3581 removePostComponentActionListener(
3641 bool autoclean =
true);
3643 template <
class Listener>
3647 void (
Listener::*memfunc)(
const RTC::PortProfile&))
3654 void (
Listener::*memfunc)(
const RTC::PortProfile&))
3655 : m_obj(obj), m_memfunc(memfunc)
3658 void operator()(
const RTC::PortProfile& pprofile)
override 3660 (m_obj.*m_memfunc)(pprofile);
3665 using Memfunc = void (
Listener::*)(
const RTC::PortProfile&);
3668 Noname* listener(
new Noname(obj, memfunc));
3669 addPortActionListener(listener_type, listener,
true);
3753 bool autoclean =
true);
3755 template <
class Listener>
3766 : m_obj(obj), m_memfunc(memfunc)
3769 void operator()(
UniqueId ec_id)
override 3771 (m_obj.*m_memfunc)(ec_id);
3779 Noname* listener(
new Noname(obj, memfunc));
3780 addExecutionContextActionListener(listener_type, listener,
true);
3863 bool autoclean =
true);
3865 template <
class Listener>
3869 void (
Listener::*memfunc)(
const char*,
3877 void (
Listener::*memfunc)(
const char*, ConnectorProfile&))
3878 : m_obj(obj), m_memfunc(memfunc)
3881 void operator()(
const char* portname, ConnectorProfile& cprofile)
override 3883 (m_obj.*m_memfunc)(portname, cprofile);
3888 using Memfunc = void (
Listener::*)(
const char*, ConnectorProfile&);
3891 Noname* listener(
new Noname(obj, memfunc));
3892 addPortConnectListener(listener_type, listener,
true);
3979 bool autoclean =
true);
3981 template <
class Listener>
3985 void (
Listener::*memfunc)(
const char*,
3994 void (
Listener::*memfunc)(
const char*,
3997 : m_obj(obj), m_memfunc(memfunc)
4000 void operator()(
const char* portname,
4001 ConnectorProfile& cprofile,
4002 ReturnCode_t ret)
override 4004 (m_obj.*m_memfunc)(portname, cprofile, ret);
4009 using Memfunc = void (
Listener::*)(
const char*, ConnectorProfile&, ReturnCode_t);
4012 Noname* listener(
new Noname(obj, memfunc));
4013 addPortConnectRetListener(listener_type, listener,
true);
4074 bool autoclean =
true);
4076 template <
class Listener>
4080 void (
Listener::*memfunc)(
const char*,
4088 void (
Listener::*memfunc)(
const char*,
const char*))
4089 : m_obj(obj), m_memfunc(memfunc)
4092 void operator()(
const char* config_set_name,
4093 const char* config_param_name)
override 4095 (m_obj.*m_memfunc)(config_set_name, config_param_name);
4100 using Memfunc = void (
Listener::*)(
const char*,
const char*);
4103 Noname* listener(
new Noname(obj, memfunc));
4104 addConfigurationParamListener(listener_type, listener,
true);
4169 bool autoclean =
true);
4171 template <
class Listener>
4184 : m_obj(obj), m_memfunc(memfunc)
4189 (m_obj.*m_memfunc)(config_set);
4197 Noname* listener(
new Noname(obj, memfunc));
4198 addConfigurationSetListener(listener_type, listener,
true);
4264 bool autoclean =
true);
4266 template <
class Listener>
4270 void (
Listener::*memfunc)(
const char*))
4277 : m_obj(obj), m_memfunc(memfunc)
4280 void operator()(
const char* config_set_name)
override 4282 (m_obj.*m_memfunc)(config_set_name);
4287 using Memfunc = void (
Listener::*)(
const char*);
4290 Noname* listener(
new Noname(obj, memfunc));
4291 addConfigurationSetNameListener(type, listener,
true);
4402 bool autoclean =
true);
4404 template <
class Listener>
4408 void (
Listener::*memfunc)(
const char* state))
4415 : m_obj(obj), m_memfunc(memfunc)
4418 void operator()(
const char* state)
override 4420 (m_obj.*m_memfunc)(state);
4425 using Memfunc = void (
Listener::*)(
const char*);
4428 Noname* listener(
new Noname(obj, memfunc));
4429 addPreFsmActionListener(listener_type, listener,
true);
4531 bool autoclean =
true);
4533 template <
class Listener>
4537 void (
Listener::*memfunc)(
const char* state,
4545 void (
Listener::*memfunc)(
const char*, ReturnCode_t))
4546 : m_obj(obj), m_memfunc(memfunc)
4549 void operator()(
const char* state, ReturnCode_t ret)
override 4551 (m_obj.*m_memfunc)(state, ret);
4556 using Memfunc = void (
Listener::*)(
const char*, ReturnCode_t);
4559 Noname* listener(
new Noname(obj, memfunc));
4560 addPostFsmActionListener(listener_type, listener,
true);
4657 bool autoclean =
true);
4659 template <
class Listener>
4663 void (
Listener::*memfunc)(
const RTC::PortProfile&))
4670 void (
Listener::*memfunc)(
const RTC::FsmProfile&))
4671 : m_obj(obj), m_memfunc(memfunc)
4674 void operator()(
const RTC::PortProfile& pprofile)
4676 (m_obj.*m_memfunc)(pprofile);
4681 using Memfunc = void (
Listener::*)(
const RTC::FsmProfile&);
4684 Noname* listener(
new Noname(obj, memfunc));
4685 addFsmProfileListener(listener_type, listener,
true);
4770 bool autoclean =
true);
4772 template <
class Listener>
4776 void (
Listener::*memfunc)(
const RTC::PortProfile&))
4783 void (
Listener::*memfunc)(
const RTC::FsmStructure&))
4784 : m_obj(obj), m_memfunc(memfunc)
4787 void operator()(
const RTC::PortProfile& pprofile)
4789 (m_obj.*m_memfunc)(pprofile);
4794 using Memfunc = void (
Listener::*)(
const RTC::FsmStructure&);
4797 Noname* listener(
new Noname(obj, memfunc));
4798 addFsmStructureListener(listener_type, listener,
true);
4827 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_INITIALIZE, ec_id);
4832 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_FINALIZE, ec_id);
4837 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_STARTUP, ec_id);
4842 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_SHUTDOWN, ec_id);
4847 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_ACTIVATED, ec_id);
4852 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_DEACTIVATED, ec_id);
4857 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_ABORTING, ec_id);
4862 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_ERROR, ec_id);
4867 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_RESET, ec_id);
4872 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_EXECUTE, ec_id);
4877 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_STATE_UPDATE, ec_id);
4882 m_actionListeners.notify(PreComponentActionListenerType::PRE_ON_RATE_CHANGED, ec_id);
4887 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_INITIALIZE, ec_id, ret);
4892 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_FINALIZE, ec_id, ret);
4897 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_STARTUP, ec_id, ret);
4902 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_SHUTDOWN, ec_id, ret);
4907 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_ACTIVATED, ec_id, ret);
4912 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_DEACTIVATED, ec_id, ret);
4917 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_ABORTING, ec_id, ret);
4922 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_ERROR, ec_id, ret);
4927 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_RESET, ec_id, ret);
4932 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_EXECUTE, ec_id, ret);
4937 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_STATE_UPDATE, ec_id, ret);
4942 m_actionListeners.notify(PostComponentActionListenerType::POST_ON_RATE_CHANGED, ec_id, ret);
4947 m_actionListeners.notify(PortActionListenerType::ADD_PORT, pprof);
4952 m_actionListeners.notify(PortActionListenerType::REMOVE_PORT, pprof);
4958 notify(ExecutionContextActionListenerType::EC_ATTACHED, ec_id);
4964 notify(ExecutionContextActionListenerType::EC_DETACHED, ec_id);
4972 m_fsmActionListeners.notify(PreFsmActionListenerType::PRE_ON_INIT, state);
4976 m_fsmActionListeners.notify(PreFsmActionListenerType::PRE_ON_ENTRY, state);
4980 m_fsmActionListeners.notify(PreFsmActionListenerType::PRE_ON_DO, state);
4984 m_fsmActionListeners.notify(PreFsmActionListenerType::PRE_ON_EXIT, state);
4988 m_fsmActionListeners.notify(PreFsmActionListenerType::PRE_ON_STATE_CHANGE, state);
4995 m_fsmActionListeners.notify(PostFsmActionListenerType::POST_ON_INIT, state, ret);
4999 m_fsmActionListeners.notify(PostFsmActionListenerType::POST_ON_ENTRY, state, ret);
5003 m_fsmActionListeners.notify(PostFsmActionListenerType::POST_ON_DO, state, ret);
5007 m_fsmActionListeners.notify(PostFsmActionListenerType::POST_ON_EXIT, state, ret);
5011 m_fsmActionListeners.notify(PostFsmActionListenerType::POST_ON_STATE_CHANGE, state, ret);
5040 ReturnCode_t initMineEC();
5052 void finalizeMineEC();
5058 void finalizeOtherEC();
5071 getPrivateContextOptions(std::vector<coil::Properties>& ec_args);
5083 getContextOptions(std::vector<coil::Properties>& ec_args);
5093 ReturnCode_t createContexts(std::vector<coil::Properties>& ec_args);
5099 void initSdoService();
5161 return m_id == std::string(prof.id);
5428 void setSdoServiceConsumer(
SdoServiceAdmin * sdoservice,
const char*
id);
5449 explicit nv_name(
const char* name) : m_name(name) {}
5452 return m_name == std::string(nv.name);
5472 if (!::CORBA::is_nil(ecs))
5475 ExecutionContext::_duplicate(ecs));
5490 : m_ec(ExecutionContext::_duplicate(ec))
5493 #ifdef ORB_IS_ORBEXPRESS 5494 bool operator()(ExecutionContextService_var ecs)
5498 if (!::CORBA::is_nil(ecs.in()))
5500 ExecutionContext_var ec;
5501 ec = ExecutionContext::_narrow(ecs.in());
5502 return m_ec->_is_equivalent(ec);
5510 if (!::CORBA::is_nil(ecs))
5512 ExecutionContext_var ec;
5513 ec = ExecutionContext::_narrow(ecs);
5514 return m_ec->_is_equivalent(ec);
5537 : m_comp(
RTC::LightweightRTObject::_duplicate(comp))
5542 if (!::CORBA::is_nil(ec) && !ec->_non_existent())
5544 RTC::LifeCycleState state = ec->get_component_state(m_comp);
5545 if (state == RTC::ACTIVE_STATE)
5547 ec->deactivate_component(
5548 RTC::LightweightRTObject::_duplicate(m_comp));
5550 else if (state == RTC::ERROR_STATE)
5552 ec->reset_component(
5553 RTC::LightweightRTObject::_duplicate(m_comp));
5562 #endif // RTC_RTOBJECT ComponentProfile m_profile
ComponentProfile.
Definition: RTObject.h:5212
PortAdmin m_portAdmin
List of Port Object reference.
Definition: RTObject.h:5230
bool operator()(ExecutionContextService_ptr ecs)
Definition: RTObject.h:5506
const char * getVendor()
[local interface] Get vendor
Definition: RTObject.h:1998
Logger rtclog
Logger stream.
Definition: RTObject.h:5109
svc_name(const char *id)
Definition: RTObject.h:5158
RTC's Port base class.
void onAddPort(const PortProfile &pprof)
Definition: RTObject.h:4945
void postOnStateUpdate(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4935
void postOnReset(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4925
void preOnAborting(UniqueId ec_id)
Definition: RTObject.h:4855
RTC::ReturnCode_t reset(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
std::vector< InPortBase * > m_inports
List of InPortBase*.
Definition: RTObject.h:5239
void onRemovePort(const PortProfile &pprof)
Definition: RTObject.h:4950
void preOnFsmExit(const char *state)
Definition: RTObject.h:4982
FsmProfileListenerType
The types of FsmProfileListener.
Definition: FsmActionListener.h:574
PortConnectRetListener class.
Definition: PortConnectListener.h:203
void preOnFsmInit(const char *state)
Definition: RTObject.h:4970
std::string m_id
Definition: RTObject.h:5163
coil::Properties get_configuration(RTC::RTObject_ptr rtc, const std::string &conf_name)
const char * getCategory()
[local interface] Get category information
Definition: RTObject.h:2023
void postOnFsmInit(const char *state, ReturnCode_t ret)
Definition: RTObject.h:4993
PreComponentActionListener * addPreComponentActionListener(PreCompActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(UniqueId ec_id))
Definition: RTObject.h:3401
RT Conponent CORBA service/consumer Port.
Definition: CorbaPort.h:623
std::string m_name
Definition: RTObject.h:5454
PortConnectRetListenerType
The types of PortConnectRetListenerType.
Definition: PortConnectListener.h:162
PortConnectListenerType
The types of ConnectorDataListener.
Definition: PortConnectListener.h:50
#define RTC_TRACE(fmt)
Trace level log output macro.
Definition: SystemLogger.h:687
ExecutionContextServiceList m_ecOther
List of participating ExecutionContextService.
Definition: RTObject.h:5275
Definition: SdoServiceAdmin.h:150
RTC::LightweightRTObject_var LightweightRTObject_var
Definition: ExecutionContextWorker.h:38
bool m_readAllCompletion
flag for readAll()
Definition: RTObject.h:5356
SDOPackage::Configuration_impl * m_pSdoConfigImpl
The pointer to the SDO Configuration Object.
Definition: RTObject.h:5173
coil::Properties get_component_profile(RTC::RTObject_ptr rtc)
RTC handling utility functions.
void preOnShutdown(UniqueId ec_id)
Definition: RTObject.h:4840
component action listener class
ConfigurationSetListener * addConfigurationSetListener(ConfigurationSetListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const coil::Properties &config_set))
Definition: RTObject.h:4173
ECActionListener * addExecutionContextActionListener(ECActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(UniqueId))
Definition: RTObject.h:3757
RT component logger class.
deactivate_comps(LightweightRTObject_ptr comp)
Definition: RTObject.h:5536
SDOPackage::OrganizationList m_sdoOrganizations
SDO organization.
Definition: RTObject.h:5191
FsmActionListeners m_fsmActionListeners
ComponentActionListener holder.
Definition: RTObject.h:5419
void onAttachExecutionContext(UniqueId ec_id)
Definition: RTObject.h:4955
PreComponentActionListenerType
The types of ConnectorDataListener.
Definition: ComponentActionListener.h:59
RTC::ReturnCode_t activate(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
ConfigAdmin class.
Definition: ConfigAdmin.h:611
FsmProfileListener * addFsmProfileListener(FsmProfileListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const RTC::PortProfile &))
Definition: RTObject.h:4661
CORBA::ORB_var m_pORB
The pointer to the ORB.
Definition: RTObject.h:5126
void postOnExecute(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4930
PostFsmActionListener * addPostFsmActionListener(PostFsmActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *state, ReturnCode_t ret))
Definition: RTObject.h:4535
A base class for ExecutionContext.
Definition: ExecutionContextBase.h:365
Functor to find from SDOService Profile List by id.
Definition: RTObject.h:5156
bool m_exiting
RTC Finalize Status Flag.
Definition: RTObject.h:5293
RT-Component class.
Definition: RTObject.h:90
PreFsmActionListenerType
The types of PreFsmActionListener.
Definition: FsmActionListener.h:89
SDOPackage::Configuration_var m_pSdoConfig
The pointer to the SDO Configuration Interface.
Definition: RTObject.h:5182
ConfigurationSetListener class.
Definition: ConfigurationListener.h:190
ConfigurationSetNameListener class.
Definition: ConfigurationListener.h:303
ComponentActionListeners m_actionListeners
ComponentActionListener holder.
Definition: RTObject.h:5389
ConfigurationParamListener class.
Definition: ConfigurationListener.h:74
Manager class.
Definition: Manager.h:90
Configuration Administration classes.
FsmProfileListener class.
Definition: FsmActionListener.h:722
PortActionListener * addPortActionListener(PortActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const RTC::PortProfile &))
Definition: RTObject.h:3645
void postOnShutdown(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4900
PortConnectRetListener * addPortConnectRetListener(PortConnectRetListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *, ConnectorProfile &, ReturnCode_t))
Definition: RTObject.h:3983
ExecutionContextList & m_eclist
Definition: RTObject.h:5478
nv_name(const char *name)
Definition: RTObject.h:5449
PostComponentActionListener * addPostComponentActionListener(PostCompActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(UniqueId ec_id, ReturnCode_t ret))
Definition: RTObject.h:3533
ConfigurationParamListener * addConfigurationParamListener(ConfigurationParamListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *, const char *))
Definition: RTObject.h:4078
void postOnError(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4920
bool m_readAll
flag for readAll()
Definition: RTObject.h:5329
Manager * m_pManager
Manager object.
Definition: RTObject.h:5117
ConfigurationSetListenerType
The types of ConfigurationSetListener.
Definition: ConfigurationListener.h:160
SdoServiceAdmin m_sdoservice
SDO Service Administrator Object.
Definition: RTObject.h:5320
PortActionListenerType
The types of PortActionListener.
Definition: ComponentActionListener.h:383
RTC::LightweightRTObject_ptr LightweightRTObject_ptr
Definition: ExecutionContextWorker.h:37
bool m_created
Created Status Flag.
Definition: RTObject.h:5284
SDOPackage::NVList m_sdoStatus
SDO Status.
Definition: RTObject.h:5200
void operator()(ExecutionContextService_ptr ecs)
Definition: RTObject.h:5470
void preOnRateChanged(UniqueId ec_id)
Definition: RTObject.h:4880
PreComponentActionListener class.
Definition: ComponentActionListener.h:122
PortableServer::POA_var m_pPOA
The pointer to the POA.
Definition: RTObject.h:5135
SdoServiceConsumerTerminator * m_sdoconterm
Definition: RTObject.h:5435
SDO Package.
Definition: InPortConsumer.h:34
void operator()(ExecutionContextService_ptr ec)
Definition: RTObject.h:5540
void postOnAborting(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4915
void postOnFsmStateChange(const char *state, ReturnCode_t ret)
Definition: RTObject.h:5009
FsmStructureListener class.
Definition: FsmActionListener.h:941
PreFsmActionListener * addPreFsmActionListener(PreFsmActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *state))
Definition: RTObject.h:4406
PortAdmin class.
Definition: PortAdmin.h:54
ConfigurationSetNameListenerType
The types of ConfigurationSetNameListener.
Definition: ConfigurationListener.h:271
SDO service administration class.
Functor to copy ExecutionContext.
Definition: RTObject.h:5464
const char * getTypeName()
[local interface] Get type name
Definition: RTObject.h:1922
PortConnectListener class.
Definition: PortConnectListener.h:83
ConfigAdmin & getConfigService()
Getting configuration service.
Definition: RTObject.h:2251
const std::vector< OutPortBase * > & getOutPorts() const
Definition: RTObject.h:2505
PostFsmActionListenerType
The types of PostFsmActionListener.
Definition: FsmActionListener.h:332
void preOnError(UniqueId ec_id)
Definition: RTObject.h:4860
SDOPackage::OrganizationList m_sdoOwnedOrganizations
SDO owned organization list.
Definition: RTObject.h:5147
void postOnFsmEntry(const char *state, ReturnCode_t ret)
Definition: RTObject.h:4997
void onDetachExecutionContext(UniqueId ec_id)
Definition: RTObject.h:4961
ConfigurationSetNameListener * addConfigurationSetNameListener(ConfigurationSetNameListenerType type, Listener &obj, void(Listener::*memfunc)(const char *))
Definition: RTObject.h:4268
ExecutionContextHandle_t UniqueId
Definition: ComponentActionListener.h:34
ConfigurationParamListenerType
The types of ConnectorDataListener.
Definition: ConfigurationListener.h:45
PortConnectListener * addPortConnectListener(PortConnectListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *, ConnectorProfile &))
Definition: RTObject.h:3867
void preOnFsmDo(const char *state)
Definition: RTObject.h:4978
Port base class.
Definition: PortBase.h:129
Functor to find NVList.
Definition: RTObject.h:5447
bool bindParameter(const char *param_name, VarType &var, const char *def_val, bool(*trans)(VarType &, const char *)=coil::stringTo)
Setup for configuration parameters.
Definition: RTObject.h:2175
component action listener class
PortConnectListeners class.
Definition: PortConnectListener.h:486
std::vector< ExecutionContextBase * > m_eclist
List of ExecutionContextBase.
Definition: RTObject.h:5266
ComponentActionListeners class.
Definition: ComponentActionListener.h:1025
ExecutionContext_var m_ec
Definition: RTObject.h:5524
Definition: SdoServiceProviderBase.h:133
void preOnFsmStateChange(const char *state)
Definition: RTObject.h:4986
Output base class.
Definition: OutPortBase.h:227
bool operator()(const SDOPackage::NameValue &nv)
Definition: RTObject.h:5450
ExecutionContextServiceList m_ecMine
List of owned ExecutionContextService.
Definition: RTObject.h:5257
bool m_writeAllCompletion
flag for writeAll()
Definition: RTObject.h:5374
void postOnFsmExit(const char *state, ReturnCode_t ret)
Definition: RTObject.h:5005
const char * getDescription()
[local interface] GetDescription
Definition: RTObject.h:1947
ConfigAdmin m_configsets
Configuration Administrator Object.
Definition: RTObject.h:5311
void preOnReset(UniqueId ec_id)
Definition: RTObject.h:4865
Functor to deactivate RTC.
Definition: RTObject.h:5534
Logger class.
Definition: SystemLogger.h:99
LightweightRTObject_var m_comp
Definition: RTObject.h:5557
const char * getVersion()
[local interface] Get version information
Definition: RTObject.h:1973
Port for InPort.
Definition: InPortBase.h:68
const char * getInstanceName()
[local interface] Get instance name
Definition: RTObject.h:1876
void postOnFinalize(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4890
RTC::Port implementation for InPort.
RTC::ReturnCode_t deactivate(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
void preOnStateUpdate(UniqueId ec_id)
Definition: RTObject.h:4875
RTC::LightweightRTObject_var m_insref
Definition: RTObject.h:5421
ec_find(ExecutionContext_ptr &ec)
Definition: RTObject.h:5489
void postOnActivated(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4905
void preOnFsmEntry(const char *state)
Definition: RTObject.h:4974
void postOnInitialize(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4885
PreFsmActionListener class.
Definition: FsmActionListener.h:231
void postOnFsmDo(const char *state, ReturnCode_t ret)
Definition: RTObject.h:5001
bool operator()(const SDOPackage::ServiceProfile &prof)
Definition: RTObject.h:5159
void preOnStartup(UniqueId ec_id)
Definition: RTObject.h:4835
FsmActionListeners class.
Definition: FsmActionListener.h:1444
void push_back(CorbaSequence &seq, SequenceElement elem)
Push the new element back to the CORBA sequence.
Definition: CORBA_SeqUtil.h:175
FsmStructureListener * addFsmStructureListener(FsmStructureListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const RTC::PortProfile &))
Definition: RTObject.h:4774
PortConnectListeners m_portconnListeners
PortConnectListener holder.
Definition: RTObject.h:5404
Configuration implementation class.
Definition: SdoConfiguration.h:149
const std::vector< InPortBase * > & getInPorts() const
Definition: RTObject.h:2504
PostComponentActionListenerType
The types of ConnectorDataListener.
Definition: ComponentActionListener.h:225
void preOnActivated(UniqueId ec_id)
Definition: RTObject.h:4845
void postOnStartup(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4895
coil::Properties m_properties
RTC's Property.
Definition: RTObject.h:5302
Definition: RTObject.h:5423
void preOnInitialize(UniqueId ec_id)
Definition: RTObject.h:4825
bool m_writeAll
flag for writeAll()
Definition: RTObject.h:5338
RTObject_var m_objref
Object reference.
Definition: RTObject.h:5221
PortActionListener class.
Definition: ComponentActionListener.h:410
ExecutionContextActionListenerType
The types of ExecutionContextActionListener.
Definition: ComponentActionListener.h:493
coil::Properties Properties
Definition: RTC.h:72
std::vector< OutPortBase * > m_outports
List of OutPortBase*.
Definition: RTObject.h:5248
Functor to find ExecutionContext.
Definition: RTObject.h:5487
port's internal action listener classes
ec_copy(ExecutionContextList &eclist)
Definition: RTObject.h:5466
FsmStructureListenerType
The types of FsmStructureListener.
Definition: FsmActionListener.h:811
RTC's Port administration class.
PostComponentActionListener class.
Definition: ComponentActionListener.h:289
PostFsmActionListener class.
Definition: FsmActionListener.h:474
void postOnDeactivated(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4910
void preOnFinalize(UniqueId ec_id)
Definition: RTObject.h:4830
ExecutionContextActionListener class.
Definition: ComponentActionListener.h:520
void postOnRateChanged(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4940
void preOnDeactivated(UniqueId ec_id)
Definition: RTObject.h:4850
void preOnExecute(UniqueId ec_id)
Definition: RTObject.h:4870