Go to the documentation of this file.
18 #ifndef RTC_RTOBJECT_H
19 #define RTC_RTOBJECT_H
25 #include <rtm/idl/RTCSkel.h>
26 #include <rtm/idl/OpenRTMSkel.h>
38 #define ECOTHER_OFFSET 1000
42 class Configuration_impl;
46 #pragma warning( disable : 4290 )
52 class ExecutionContextBase;
53 typedef ExecutionContextHandle_t
UniqueId;
90 :
public virtual POA_OpenRTM::DataFlowComponent,
91 public virtual PortableServer::RefCountServantBase
134 RTObject_impl(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa);
617 throw (CORBA::SystemException);
665 throw (CORBA::SystemException);
710 virtual ReturnCode_t
exit()
711 throw (CORBA::SystemException);
746 virtual CORBA::Boolean
is_alive(ExecutionContext_ptr exec_context)
747 throw (CORBA::SystemException);
777 throw (CORBA::SystemException);
798 throw (CORBA::SystemException);
819 throw (CORBA::SystemException);
835 virtual ExecutionContextHandle_t
837 throw (CORBA::SystemException);
870 throw (CORBA::SystemException);
916 throw (CORBA::SystemException);
941 throw (CORBA::SystemException);
963 throw (CORBA::SystemException);
1018 throw (CORBA::SystemException);
1045 throw (CORBA::SystemException);
1076 throw (CORBA::SystemException);
1107 throw (CORBA::SystemException);
1136 throw (CORBA::SystemException);
1166 throw (CORBA::SystemException);
1201 throw (CORBA::SystemException);
1247 throw (CORBA::SystemException);
1284 throw (CORBA::SystemException);
1332 throw (CORBA::SystemException);
1378 throw (CORBA::SystemException);
1417 throw (CORBA::SystemException);
1460 throw (CORBA::SystemException,
1461 SDOPackage::NotAvailable, SDOPackage::InternalError);
1500 throw (CORBA::SystemException,
1501 SDOPackage::NotAvailable, SDOPackage::InternalError);
1537 throw (CORBA::SystemException,
1538 SDOPackage::NotAvailable, SDOPackage::InternalError);
1577 throw (CORBA::SystemException,
1578 SDOPackage::NotAvailable, SDOPackage::InternalError);
1617 throw (CORBA::SystemException,
1618 SDOPackage::NotAvailable, SDOPackage::InternalError);
1662 throw (CORBA::SystemException,
1663 SDOPackage::InvalidParameter, SDOPackage::NotAvailable,
1664 SDOPackage::InternalError);
1714 throw (CORBA::SystemException,
1715 SDOPackage::InvalidParameter, SDOPackage::NotAvailable,
1716 SDOPackage::InternalError);
1763 throw (CORBA::SystemException,
1764 SDOPackage::InterfaceNotImplemented, SDOPackage::NotAvailable,
1765 SDOPackage::InternalError);
1811 throw (CORBA::SystemException,
1812 SDOPackage::InterfaceNotImplemented, SDOPackage::NotAvailable,
1813 SDOPackage::InternalError);
1851 throw (CORBA::SystemException,
1852 SDOPackage::NotAvailable, SDOPackage::InternalError);
1886 throw (CORBA::SystemException,
1887 SDOPackage::NotAvailable, SDOPackage::InternalError);
1925 virtual CORBA::Any*
get_status(
const char* name)
1926 throw (CORBA::SystemException,
1927 SDOPackage::InvalidParameter, SDOPackage::NotAvailable,
1928 SDOPackage::InternalError);
2145 void setObjRef(
const RTObject_ptr rtobj);
2250 template <
typename VarType>
2252 const char* def_val,
2255 RTC_TRACE((
"bindParameter(%s (default: %s))", param_name, def_val));
2419 bool addPort(PortService_ptr port);
3314 void setReadAll(
bool read=
true,
bool completion=
false);
3350 void setWriteAll(
bool write=
true,
bool completion=
false);
3463 bool autoclean =
true);
3466 template <
class Listener>
3477 : m_obj(obj), m_memfunc(memfunc)
3482 (m_obj.*m_memfunc)(ec_id);
3489 Noname* listener(
new Noname(obj, memfunc));
3597 bool autoclean =
true);
3599 template <
class Listener>
3611 : m_obj(obj), m_memfunc(memfunc)
3614 void operator()(
UniqueId ec_id, ReturnCode_t ret)
3616 (m_obj.*m_memfunc)(ec_id, ret);
3623 Noname* listener(
new Noname(obj, memfunc));
3710 bool autoclean =
true);
3712 template <
class Listener>
3716 void (
Listener::*memfunc)(
const RTC::PortProfile&))
3723 void (
Listener::*memfunc)(
const RTC::PortProfile&))
3724 : m_obj(obj), m_memfunc(memfunc)
3727 void operator()(
const RTC::PortProfile& pprofile)
3729 (m_obj.*m_memfunc)(pprofile);
3733 typedef void (
Listener::*Memfunc)(
const RTC::PortProfile&);
3736 Noname* listener(
new Noname(obj, memfunc));
3823 bool autoclean =
true);
3825 template <
class Listener>
3836 : m_obj(obj), m_memfunc(memfunc)
3841 (m_obj.*m_memfunc)(ec_id);
3848 Noname* listener(
new Noname(obj, memfunc));
3934 bool autoclean =
true);
3936 template <
class Listener>
3940 void (
Listener::*memfunc)(
const char*,
3948 void (
Listener::*memfunc)(
const char*, ConnectorProfile&))
3949 : m_obj(obj), m_memfunc(memfunc)
3952 void operator()(
const char* portname, ConnectorProfile& cprofile)
3954 (m_obj.*m_memfunc)(portname, cprofile);
3958 typedef void (
Listener::*Memfunc)(
const char*, ConnectorProfile&);
3961 Noname* listener(
new Noname(obj, memfunc));
4050 bool autoclean =
true);
4052 template <
class Listener>
4056 void (
Listener::*memfunc)(
const char*,
4065 void (
Listener::*memfunc)(
const char*,
4068 : m_obj(obj), m_memfunc(memfunc)
4071 void operator()(
const char* portname,
4072 ConnectorProfile& cprofile,
4075 (m_obj.*m_memfunc)(portname, cprofile, ret);
4079 typedef void (
Listener::*Memfunc)(
const char* portname,
4080 ConnectorProfile& cprofile,
4084 Noname* listener(
new Noname(obj, memfunc));
4148 bool autoclean =
true);
4150 template <
class Listener>
4154 void (
Listener::*memfunc)(
const char*,
4162 void (
Listener::*memfunc)(
const char*,
const char*))
4163 : m_obj(obj), m_memfunc(memfunc)
4166 void operator()(
const char* config_set_name,
4167 const char* config_param_name)
4169 (m_obj.*m_memfunc)(config_set_name, config_param_name);
4173 typedef void (
Listener::*Memfunc)(
const char*,
const char*);
4176 Noname* listener(
new Noname(obj, memfunc));
4241 bool autoclean =
true);
4243 template <
class Listener>
4256 : m_obj(obj), m_memfunc(memfunc)
4261 (m_obj.*m_memfunc)(config_set);
4268 Noname* listener(
new Noname(obj, memfunc));
4335 bool autoclean =
true);
4337 template <
class Listener>
4341 void (
Listener::*memfunc)(
const char*))
4348 : m_obj(obj), m_memfunc(memfunc)
4351 virtual void operator()(
const char* config_set_name)
4353 (m_obj.*m_memfunc)(config_set_name);
4357 typedef void (
Listener::*Memfunc)(
const char*);
4360 Noname* listener(
new Noname(obj, memfunc));
4585 ReturnCode_t
createContexts(std::vector<coil::Properties>& ec_args);
4648 return m_id == std::string(prof.id);
4913 m_sdoservice = sdoservice;
4943 return m_name == std::string(nv.name);
4963 if (!::CORBA::is_nil(ecs))
4966 ExecutionContext::_duplicate(ecs));
4981 :
m_ec(ExecutionContext::_duplicate(ec))
4988 if (!::CORBA::is_nil(ecs))
4990 ExecutionContext_var ec;
4991 ec = ExecutionContext::_narrow(ecs);
4992 return m_ec->_is_equivalent(ec);
5016 :
m_comp(
RTC::LightweightRTObject::_duplicate(comp))
5021 if (!::CORBA::is_nil(ec) && !ec->_non_existent())
5024 ec->deactivate_component(RTC::LightweightRTObject::_duplicate(
m_comp));
5034 #pragma warning( default : 4290 )
5037 #endif // RTC_RTOBJECT
ConfigurationSetListenerType
The types of ConfigurationSetListener.
Definition: ConfigurationListener.h:158
virtual ExecutionContextHandle_t get_context_handle(ExecutionContext_ptr cxt)
[CORBA interface] Return a handle of a ExecutionContext
const std::vector< InPortBase * > & getInPorts() const
Definition: RTObject.h:2580
void removeConfigurationSetListener(ConfigurationSetListenerType type, ConfigurationSetListener *listener)
Removing ConfigurationSetListener.
void preOnExecute(UniqueId ec_id)
Definition: RTObject.h:4462
RTC::LightweightRTObject_ptr LightweightRTObject_ptr
Definition: ExecutionContextWorker.h:43
void preOnActivated(UniqueId ec_id)
Definition: RTObject.h:4437
@ PRE_ON_STARTUP
Definition: ComponentActionListener.h:61
Logger rtclog
Logger stream.
Definition: RTObject.h:4596
ConfigurationSetListener * addConfigurationSetListener(ConfigurationSetListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const coil::Properties &config_set))
Definition: RTObject.h:4245
ReturnCode_t detach_context(UniqueId exec_handle)
[CORBA interface] Detach ExecutionContext.
RTC::Port implementation for InPort.
ReturnCode_t getInheritedECOptions(coil::Properties &default_opts)
ConfigurationParamListener * addConfigurationParamListener(ConfigurationParamListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *, const char *))
Definition: RTObject.h:4152
std::vector< OutPortBase * > m_outports
List of OutPortBase*.
Definition: RTObject.h:4735
@ PRE_ON_SHUTDOWN
Definition: ComponentActionListener.h:62
ConfigAdmin class.
Definition: ConfigAdmin.h:610
@ POST_ON_FINALIZE
Definition: ComponentActionListener.h:222
@ PRE_ON_INITIALIZE
Definition: ComponentActionListener.h:59
virtual ReturnCode_t onActivated(RTC::UniqueId exec_handle)
Callback function to activate.
void removePostComponentActionListener(PostComponentActionListenerType listener_type, PostComponentActionListener *listener)
Removing PostComponentAction type listener.
bool removeInPort(InPortBase &port)
[local interface] Unregister InPort
bool addInPort(const char *name, InPortBase &inport)
[local interface] Register DataInPort
const char * getDescription()
[local interface] GetDescription
Definition: RTObject.h:2023
RTObject_ptr getObjRef() const
[local interface] Get the object reference
RT Conponent CORBA service/consumer Port.
Definition: CorbaPort.h:620
Functor to find ExecutionContext.
Definition: RTObject.h:4978
virtual ReturnCode_t onStateUpdate(RTC::UniqueId exec_handle)
Callback function to update the state.
ReturnCode_t findExistingEC(coil::Properties &ec_arg, RTC::ExecutionContextBase *&ec)
fiding existing EC from the factory
deactivate_comps(LightweightRTObject_ptr comp)
Definition: RTObject.h:5015
@ POST_ON_ACTIVATED
Definition: ComponentActionListener.h:225
bool operator()(ExecutionContextService_ptr ecs)
Definition: RTObject.h:4984
virtual ReturnCode_t onRateChanged(RTC::UniqueId exec_handle)
Callback function to change execution cycle.
SDO service administration class.
void postOnShutdown(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4492
virtual ~RTObject_impl(void)
Virtual destructor.
@ EC_ATTACHED
Definition: ComponentActionListener.h:485
Configuration Administration classes.
void setInstanceName(const char *instance_name)
[local interface] Set instance name
bool m_exiting
RTC Finalize Status Flag.
Definition: RTObject.h:4780
SDOPackage::Configuration_var m_pSdoConfig
The pointer to the SDO Configuration Interface.
Definition: RTObject.h:4669
ExecutionContextServiceList m_ecOther
List of participating ExecutionContextService.
Definition: RTObject.h:4762
RTC::LightweightRTObject_var LightweightRTObject_var
Definition: ExecutionContextWorker.h:45
void addPreComponentActionListener(PreComponentActionListenerType listener_type, PreComponentActionListener *listener, bool autoclean=true)
PreComponentActionListenerType
The types of ConnectorDataListener.
Definition: ComponentActionListener.h:57
virtual ReturnCode_t exit()
[CORBA interface]top the RTC's execution context(s) and finalize it along with its contents.
ConfigurationSetNameListener * addConfigurationSetNameListener(ConfigurationSetNameListenerType type, Listener &obj, void(Listener::*memfunc)(const char *))
Definition: RTObject.h:4339
ReturnCode_t getContextOptions(std::vector< coil::Properties > &ec_args)
getting EC options
UniqueId attach_context(ExecutionContext_ptr exec_context)
[CORBA interface] Attach ExecutionContext
void preOnShutdown(UniqueId ec_id)
Definition: RTObject.h:4432
SDOPackage::OrganizationList m_sdoOrganizations
SDO organization.
Definition: RTObject.h:4678
SDOPackage::NVList m_sdoStatus
SDO Status.
Definition: RTObject.h:4687
ExecutionContextServiceList m_ecMine
List of owned ExecutionContextService.
Definition: RTObject.h:4744
@ POST_ON_ABORTING
Definition: ComponentActionListener.h:227
virtual ExecutionContextList * get_participating_contexts()
[CORBA interface] Get participating ExecutionContextList.
ReturnCode_t getPrivateContextOptions(std::vector< coil::Properties > &ec_args)
getting individual EC options from RTC's configuration file
PostComponentActionListener * addPostComponentActionListener(PostCompActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(UniqueId ec_id, ReturnCode_t ret))
Definition: RTObject.h:3601
SdoServiceConsumerTerminator * m_sdoconterm
Definition: RTObject.h:4925
A base class for ExecutionContext.
Definition: ExecutionContextBase.h:369
void notify(UniqueId ec_id)
Notify listeners.
bool m_readAll
flag for readAll()
Definition: RTObject.h:4825
virtual SDOPackage::OrganizationList * get_owned_organizations()
[SDO interface] Get Organization list
virtual char * get_sdo_type()
[SDO interface] Get SDO type
CORBA::ORB_var m_pORB
The pointer to the ORB.
Definition: RTObject.h:4613
virtual ExecutionContextList * get_owned_contexts()
[CORBA interface] Get ExecutionContextList.
bool m_writeAllCompletion
flag for writeAll()
Definition: RTObject.h:4870
const char * getCategory()
[local interface] Get category information
Definition: RTObject.h:2099
void removeConfigurationSetNameListener(ConfigurationSetNameListenerType type, ConfigurationSetNameListener *listener)
Removing ConfigurationSetNameListener.
void onAttachExecutionContext(UniqueId ec_id)
Definition: RTObject.h:4547
Property list class (derived from Java Properties)
virtual ReturnCode_t on_initialize()
[RTObject CORBA interface] Get ExecutionContextAdmin
ExecutionContextActionListenerHolder ecaction_[EC_ACTION_LISTENER_NUM]
ExecutionContextActionType listener array The ExecutionContextActionType listener is stored.
Definition: ComponentActionListener.h:1064
@ POST_ON_SHUTDOWN
Definition: ComponentActionListener.h:224
virtual ReturnCode_t onInitialize()
Callback function to initialize.
virtual ReturnCode_t onStartup(RTC::UniqueId exec_handle)
Callback function for startup action.
void notify(UniqueId ec_id, ReturnCode_t ret)
Notify listeners.
void postOnExecute(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4522
Functor to find NVList.
Definition: RTObject.h:4938
void removePreComponentActionListener(PreComponentActionListenerType listener_type, PreComponentActionListener *listener)
Removing PreComponentAction type listener.
virtual ReturnCode_t initialize()
[CORBA interface] Initialize the RTC that realizes this interface.
void registerPort(PortBase &port)
[local interface] Register Port
virtual ReturnCode_t onFinalize()
Callback function to finalize.
void shutdown()
Shutdown RTC.
void postOnInitialize(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4477
@ EC_DETACHED
Definition: ComponentActionListener.h:486
RTObject_var m_objref
Object reference.
Definition: RTObject.h:4708
virtual ReturnCode_t on_activated(UniqueId exec_handle)
[ComponentAction CORBA interface] Activate RTC
PortAdmin class.
Definition: PortAdmin.h:52
RT-Component class.
Definition: RTObject.h:89
@ PRE_ON_STATE_UPDATE
Definition: ComponentActionListener.h:69
ConfigurationSetNameListener class.
Definition: ConfigurationListener.h:298
virtual SDOPackage::Configuration_ptr get_configuration()
[SDO interface] Get Configuration object
Definition: RTObject.h:4903
Manager * m_pManager
Manager object.
Definition: RTObject.h:4604
void postOnReset(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4517
PortConnectListener * addPortConnectListener(PortConnectListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *, ConnectorProfile &))
Definition: RTObject.h:3938
void notify(UniqueId ec_id)
Notify listeners.
virtual PortServiceList * get_ports()
[RTObject CORBA interface] Get Ports
void addPostComponentActionListener(PostComponentActionListenerType listener_type, PostComponentActionListener *listener, bool autoclean=true)
@ PRE_ON_RESET
Definition: ComponentActionListener.h:67
virtual ReturnCode_t onShutdown(RTC::UniqueId exec_handle)
Callback function for shutdown action.
@ POST_ON_RATE_CHANGED
Definition: ComponentActionListener.h:232
void push_back(CorbaSequence &seq, SequenceElement elem)
Push the new element back to the CORBA sequence.
Definition: CORBA_SeqUtil.h:175
void registerInPort(const char *name, InPortBase &inport)
[local interface] Register DataInPort
void updateParameters(const char *config_set)
Update configuration parameters (by ID)
void setProperties(const coil::Properties &prop)
[local interface] Set RTC property
PortConnectListenerType
The types of ConnectorDataListener.
Definition: PortConnectListener.h:49
void removePortActionListener(PortActionListenerType listener_type, PortActionListener *listener)
Removing PortAction type listener.
nv_name(const char *name)
Definition: RTObject.h:4940
Functor to deactivate RTC.
Definition: RTObject.h:5013
virtual ReturnCode_t onError(RTC::UniqueId exec_handle)
Callback function for error handling.
bool addSdoServiceProvider(const SDOPackage::ServiceProfile &prof, SdoServiceProviderBase *provider)
[local interface] Set a SDO service provider
void deletePortByName(const char *port_name)
[local interface] Delete Port by specifying its name
PreComponentActionListener class.
Definition: ComponentActionListener.h:120
virtual char * get_sdo_id()
[SDO interface] Get the SDO ID
void addConfigurationSetListener(ConfigurationSetListenerType type, ConfigurationSetListener *listener, bool autoclean=true)
Adding ConfigurationSetListener.
virtual SDOPackage::SDOService_ptr get_sdo_service(const char *id)
[SDO interface] Get specified SDO Service's reference
virtual CORBA::Any * get_status(const char *name)
[SDO interface] Get SDO Status
ReturnCode_t getGlobalContextOptions(coil::Properties &global_ec_props)
getting global EC options from rtc.conf
void postOnActivated(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4497
PortActionListener class.
Definition: ComponentActionListener.h:403
void postOnRateChanged(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4532
ReturnCode_t createContexts(std::vector< coil::Properties > &ec_args)
creating, initializing and binding context
PortConnectListeners m_portconnListeners
PortConnectListener holder.
Definition: RTObject.h:4900
@ POST_ON_STATE_UPDATE
Definition: ComponentActionListener.h:231
@ POST_ON_INITIALIZE
Definition: ComponentActionListener.h:221
virtual SDOPackage::Monitoring_ptr get_monitoring()
[SDO interface] Get Monitoring object
const char * getVendor()
[local interface] Get vendor
Definition: RTObject.h:2074
ConfigurationSetNameListenerType
The types of ConfigurationSetNameListener.
Definition: ConfigurationListener.h:266
ReturnCode_t deactivate(RTC::UniqueId ec_id)
[local interface] Make transition to Inactive state
ConfigAdmin & getConfigService()
Getting configuration service.
Definition: RTObject.h:2327
Output base class.
Definition: OutPortBase.h:235
virtual ReturnCode_t on_finalize()
[ComponentAction CORBA interface] Finalize RTC
void postOnStateUpdate(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4527
ComponentActionListeners m_actionListeners
ComponentActionListener holder.
Definition: RTObject.h:4885
bool m_writeAll
flag for writeAll()
Definition: RTObject.h:4834
std::string m_id
Definition: RTObject.h:4650
PortConnectListeners class.
Definition: PortConnectListener.h:487
ExecutionContextActionListener ECActionListener
Definition: RTObject.h:3820
PortActionListener * addPortActionListener(PortActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const RTC::PortProfile &))
Definition: RTObject.h:3714
void preOnDeactivated(UniqueId ec_id)
Definition: RTObject.h:4442
const char * getVersion()
[local interface] Get version information
Definition: RTObject.h:2049
void setSdoServiceConsumer(SdoServiceAdmin *sdoservice, const char *id)
Definition: RTObject.h:4911
PreComponentActionListenerType PreCompActionListenerType
Definition: RTObject.h:3459
Functor to find from SDOService Profile List by id.
Definition: RTObject.h:4643
virtual ReturnCode_t onExecute(RTC::UniqueId exec_handle)
Callback function to execute periodically.
void setObjRef(const RTObject_ptr rtobj)
[local interface] Set the object reference
void addPortConnectListener(PortConnectListenerType listener_type, PortConnectListener *listener, bool autoclean=true)
Adding PortConnect type listener.
void addConfigurationParamListener(ConfigurationParamListenerType type, ConfigurationParamListener *listener, bool autoclean=true)
Adding ConfigurationParamListener.
ReturnCode_t activate(RTC::UniqueId ec_id)
[local interface] Make transition to Active state
void setReadAll(bool read=true, bool completion=false)
Set whether to execute the readAll() method.
std::vector< ExecutionContextBase * > m_eclist
List of ExecutionContextBase.
Definition: RTObject.h:4753
ExecutionContextActionListener class.
Definition: ComponentActionListener.h:510
virtual ComponentProfile * get_component_profile()
[RTObject CORBA interface] Get RTC's profile
ConfigurationParamListener class.
Definition: ConfigurationListener.h:72
virtual ReturnCode_t on_execute(UniqueId exec_handle)
[DataFlowComponentAction CORBA interface] Primary Periodic Operation of RTC
@ POST_ON_RESET
Definition: ComponentActionListener.h:229
void deletePort(PortBase &port)
[local interface] Unregister Port
ec_find(ExecutionContext_ptr &ec)
Definition: RTObject.h:4980
virtual ReturnCode_t on_reset(UniqueId exec_handle)
[ComponentAction CORBA interface] Resetting RTC
bool operator()(const SDOPackage::NameValue &nv)
Definition: RTObject.h:4941
void preOnFinalize(UniqueId ec_id)
Definition: RTObject.h:4422
bool m_readAllCompletion
flag for readAll()
Definition: RTObject.h:4852
RTObject_impl(Manager *manager)
Constructor.
Definition: SdoServiceProviderBase.h:134
@ POST_ON_EXECUTE
Definition: ComponentActionListener.h:230
double getExecutionRate(RTC::UniqueId ec_id)
[local interface] Getting current context' execution rate
Logger class.
Definition: SystemLogger.h:99
void postOnAborting(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4507
void postOnFinalize(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4482
void postOnDeactivated(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4502
void postOnError(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4512
ExecutionContextList & m_eclist
Definition: RTObject.h:4969
virtual int svc(void)
Execute thread.
Definition: RTObject.h:4916
#define RTC_TRACE(fmt)
Trace level log output macro.
Definition: SystemLogger.h:588
virtual SDOPackage::NVList * get_status_list()
[SDO interface] Get SDO Status list
bool removeOutPort(OutPortBase &port)
[local interface] Unregister OutPort
virtual SDOPackage::OrganizationList * get_organizations()
[SDO interface] Get Organization list
void addExecutionContextActionListener(ECActionListenerType listener_type, ECActionListener *listener, bool autoclean=true)
Definition: SdoServiceAdmin.h:148
@ ADD_PORT
Definition: ComponentActionListener.h:378
virtual ReturnCode_t on_aborting(UniqueId exec_handle)
[ComponentAction CORBA interface] Transition to Error State
void addPortActionListener(PortActionListenerType listener_type, PortActionListener *listener, bool autoclean=true)
Adding PortAction type listener.
ec_copy(ExecutionContextList &eclist)
Definition: RTObject.h:4957
bool m_created
Created Status Flag.
Definition: RTObject.h:4771
@ PRE_ON_RATE_CHANGED
Definition: ComponentActionListener.h:70
PortActionListenerHolder portaction_[PORT_ACTION_LISTENER_NUM]
PortActionType listener array The PortActionType listener is stored.
Definition: ComponentActionListener.h:1053
PortAdmin m_portAdmin
List of Port Object reference.
Definition: RTObject.h:4717
void finalizeContexts()
The ExecutionContextBase list is deleted.
void removeConfigurationParamListener(ConfigurationParamListenerType type, ConfigurationParamListener *listener)
Removing ConfigurationParamListener.
void preOnError(UniqueId ec_id)
Definition: RTObject.h:4452
void notify(const RTC::PortProfile &pprofile)
Notify listeners.
void removePortConnectListener(PortConnectListenerType listener_type, PortConnectListener *listener)
Removing PortConnect type listener.
ExecutionContext_var m_ec
Definition: RTObject.h:5001
void preOnInitialize(UniqueId ec_id)
Definition: RTObject.h:4417
ComponentActionListeners class.
Definition: ComponentActionListener.h:1018
bool writeAll()
The write() method of all OutPort is called.
void registerOutPort(const char *name, OutPortBase &outport)
[local interface] Register DataOutPort
void onAddPort(const PortProfile &pprof)
Definition: RTObject.h:4537
void onDetachExecutionContext(UniqueId ec_id)
Definition: RTObject.h:4552
Class represents a set of properties.
Definition: Properties.h:101
virtual ReturnCode_t on_shutdown(UniqueId exec_handle)
[ComponentAction CORBA interface] Shutdown RTC
port's internal action listener classes
void preOnStartup(UniqueId ec_id)
Definition: RTObject.h:4427
SdoServiceAdmin m_sdoservice
SDO Service Administrator Object.
Definition: RTObject.h:4816
Port base class.
Definition: PortBase.h:135
@ PRE_ON_ERROR
Definition: ComponentActionListener.h:66
@ PRE_ON_FINALIZE
Definition: ComponentActionListener.h:60
PostComponentActionListenerHolder postaction_[POST_COMPONENT_ACTION_LISTENER_NUM]
PostComponentActionType listener array The PostComponentActionType listener is stored.
Definition: ComponentActionListener.h:1042
bool removePort(PortBase &port)
[local interface] Unregister Port
RTC's Port administration class.
ReturnCode_t reset(RTC::UniqueId ec_id)
[local interface] Resetting and go to Inactive state
virtual ReturnCode_t onDeactivated(RTC::UniqueId exec_handle)
Callback function to deactivate.
const char * getTypeName()
[local interface] Get type name
Definition: RTObject.h:1998
@ PRE_ON_EXECUTE
Definition: ComponentActionListener.h:68
PreComponentActionListenerHolder preaction_[PRE_COMPONENT_ACTION_LISTENER_NUM]
PreComponentActionListenerType listener array The PreComponentActionListenerType listener is stored.
Definition: ComponentActionListener.h:1031
bool stringTo(To &val, const char *str)
Convert the given std::string to object.
Definition: stringutil.h:633
virtual SDOPackage::DeviceProfile * get_device_profile()
[SDO interface] Get SDO DeviceProfile list
ComponentProfile m_profile
ComponentProfile.
Definition: RTObject.h:4699
bool removeSdoServiceConsumer(const char *id)
Remove Service Consumer.
void operator()(ExecutionContextService_ptr ecs)
Definition: RTObject.h:4961
void preOnStateUpdate(UniqueId ec_id)
Definition: RTObject.h:4467
bool bindParameter(const char *param_name, VarType &var, const char *def_val, bool(*trans)(VarType &, const char *)=coil::stringTo)
Setup for configuration parameters.
Definition: ConfigAdmin.h:692
LightweightRTObject_var m_comp
Definition: RTObject.h:5028
PortConnectRetListenerType
The types of PortConnectRetListenerType.
Definition: PortConnectListener.h:161
@ PRE_ON_DEACTIVATED
Definition: ComponentActionListener.h:64
ConfigAdmin m_configsets
Configuration Administrator Object.
Definition: RTObject.h:4807
void preOnReset(UniqueId ec_id)
Definition: RTObject.h:4457
void preOnAborting(UniqueId ec_id)
Definition: RTObject.h:4447
const std::vector< OutPortBase * > & getOutPorts() const
Definition: RTObject.h:2581
PostComponentActionListenerType PostCompActionListenerType
Definition: RTObject.h:3592
virtual SDOPackage::ServiceProfileList * get_service_profiles()
[SDO interface] Get SDO ServiceProfile
ECActionListener * addExecutionContextActionListener(ECActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(UniqueId))
Definition: RTObject.h:3827
bool addSdoServiceConsumer(const SDOPackage::ServiceProfile &prof)
[local interface] Set a SDO service provider
virtual ExecutionContext_ptr get_context(UniqueId exec_handle)
[CORBA interface] Get ExecutionContext.
PortConnectListener class.
Definition: PortConnectListener.h:82
@ POST_ON_STARTUP
Definition: ComponentActionListener.h:223
PreComponentActionListener * addPreComponentActionListener(PreCompActionListenerType listener_type, Listener &obj, void(Listener::*memfunc)(UniqueId ec_id))
Definition: RTObject.h:3468
virtual ReturnCode_t on_startup(UniqueId exec_handle)
[ComponentAction CORBA interface] Startup RTC
bool addOutPort(const char *name, OutPortBase &outport)
[local interface] Register DataOutPort
SDO Package.
Definition: InPortConsumer.h:33
ExecutionContextHandle_t UniqueId
Definition: ComponentActionListener.h:32
bool addPort(PortBase &port)
[local interface] Register Port
Manager class.
Definition: Manager.h:81
virtual ReturnCode_t on_state_update(UniqueId exec_handle)
[DataFlowComponentAction CORBA interface] Secondary Periodic Operation of RTC
Functor to copy ExecutionContext.
Definition: RTObject.h:4955
virtual ReturnCode_t onReset(RTC::UniqueId exec_handle)
Callback function to reset.
void finalizePorts()
Unregister All Ports.
void removePortConnectRetListener(PortConnectRetListenerType listener_type, PortConnectRetListener *listener)
Removing PortConnectRet type listener.
virtual ReturnCode_t finalize()
[CORBA interface] Finalize the RTC for destruction
ReturnCode_t setExecutionRate(RTC::UniqueId ec_id, double rate)
[local interface] Setting current context' execution rate
ConfigurationParamListenerType
The types of ConnectorDataListener.
Definition: ConfigurationListener.h:43
std::vector< std::string > getNamingNames()
[local interface] Get Naming Server information
void postOnStartup(UniqueId ec_id, ReturnCode_t ret)
Definition: RTObject.h:4487
PreComponentActionListener PreCompActionListener
Adding PreComponentAction type listener.
Definition: RTObject.h:3458
UniqueId bindContext(ExecutionContext_ptr exec_context)
virtual ReturnCode_t on_rate_changed(UniqueId exec_handle)
[DataFlowComponentAction CORBA interface] Notify rate changed
virtual ReturnCode_t onAborting(RTC::UniqueId exec_handle)
Callback function to abort.
PostComponentActionListenerType
The types of ConnectorDataListener.
Definition: ComponentActionListener.h:219
bool removeSdoServiceConsumer(const char *id)
[local interface] Remove a SDO service provider
@ POST_ON_DEACTIVATED
Definition: ComponentActionListener.h:226
virtual CORBA::Boolean is_alive(ExecutionContext_ptr exec_context)
[CORBA interface] Confirm whether RTC is the alive state
svc_name(const char *id)
Definition: RTObject.h:4645
SDOPackage::Configuration_impl * m_pSdoConfigImpl
The pointer to the SDO Configuration Object.
Definition: RTObject.h:4660
std::vector< InPortBase * > m_inports
List of InPortBase*.
Definition: RTObject.h:4726
PortActionListenerType
The types of PortActionListener.
Definition: ComponentActionListener.h:376
ExecutionContextActionListenerType ECActionListenerType
Adding ExecutionContextAction type listener.
Definition: RTObject.h:3819
void preOnRateChanged(UniqueId ec_id)
Definition: RTObject.h:4472
@ POST_ON_ERROR
Definition: ComponentActionListener.h:228
bool isOwnExecutionContext(RTC::UniqueId ec_id)
[local interface] Checking if the current context is own context
@ PRE_ON_ACTIVATED
Definition: ComponentActionListener.h:63
Port for InPort.
Definition: InPortBase.h:74
PortConnectRetListener class.
Definition: PortConnectListener.h:202
coil::Properties & getProperties()
[local interface] Get RTC property
void setWriteAll(bool write=true, bool completion=false)
Set whether to execute the writeAll() method.
bool readAll()
Readout the value from All InPorts.
void addPortConnectRetListener(PortConnectRetListenerType listener_type, PortConnectRetListener *listener, bool autoclean=true)
Adding PortConnectRet type listener.
PostComponentActionListener class.
Definition: ComponentActionListener.h:283
void addConfigurationSetNameListener(ConfigurationSetNameListenerType type, ConfigurationSetNameListener *listener, bool autoclean=true)
Adding ConfigurationSetNameListener.
virtual ReturnCode_t on_deactivated(UniqueId exec_handle)
[ComponentAction CORBA interface] Deactivate RTC
SdoServiceConsumerTerminator()
Definition: RTObject.h:4907
void onRemovePort(const PortProfile &pprof)
Definition: RTObject.h:4542
void removeSdoServiceConsumerStartThread(const char *id)
[local interface] Remove a SDO service provider
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:2251
PortableServer::POA_var m_pPOA
The pointer to the POA.
Definition: RTObject.h:4622
bool removeSdoServiceProvider(const char *id)
[local interface] Remove a SDO service provider
std::string m_name
Definition: RTObject.h:4945
Configuration implementation class.
Definition: SdoConfiguration.h:154
const char * getInstanceName()
[local interface] Get instance name
Definition: RTObject.h:1952
Task class.
Definition: Task.h:39
@ PRE_ON_ABORTING
Definition: ComponentActionListener.h:65
virtual SDOPackage::ServiceProfile * get_service_profile(const char *id)
[SDO interface] Get specified ServiceProfile
ConfigurationSetListener class.
Definition: ConfigurationListener.h:188
RT component logger class.
PortConnectRetListener * addPortConnectRetListener(PortConnectRetListenerType listener_type, Listener &obj, void(Listener::*memfunc)(const char *, ConnectorProfile &, ReturnCode_t))
Definition: RTObject.h:4054
coil::Properties m_properties
Alive Status Flag.
Definition: RTObject.h:4798
virtual ReturnCode_t on_error(UniqueId exec_handle)
[ComponentAction CORBA interface] Error Processing of RTC
@ REMOVE_PORT
Definition: ComponentActionListener.h:379
component action listener class
ExecutionContext_ptr getExecutionContext(RTC::UniqueId ec_id)
[local interface] Getting current execution context
bool operator()(const SDOPackage::ServiceProfile &prof)
Definition: RTObject.h:4646
SDOPackage::OrganizationList m_sdoOwnedOrganizations
SDO owned organization list.
Definition: RTObject.h:4634
ExecutionContextActionListenerType
The types of ExecutionContextActionListener.
Definition: ComponentActionListener.h:483
void operator()(ExecutionContextService_ptr ec)
Definition: RTObject.h:5019
void removeExecutionContextActionListener(ECActionListenerType listener_type, ECActionListener *listener)
Removing ExecutionContextAction type listener.
PostComponentActionListener PostCompActionListener
Adding PostComponentAction type listener.
Definition: RTObject.h:3591