20 #ifndef RTC_PERIODICECSHAREDCOMPOSITE_H 21 #define RTC_PERIODICECSHAREDCOMPOSITE_H 23 #include <rtm/idl/RTCSkel.h> 24 #include <rtm/idl/OpenRTMSkel.h> 28 #include <coil/stringutil.h> 46 #pragma warning( disable : 4290 ) 127 virtual ::CORBA::Boolean
add_members(
const SDOList& sdo_list)
128 throw (::CORBA::SystemException,
129 InvalidParameter, NotAvailable, InternalError);
154 virtual ::CORBA::Boolean
set_members(
const SDOList& sdos)
155 throw (::CORBA::SystemException,
156 InvalidParameter, NotAvailable, InternalError);
180 throw (::CORBA::SystemException,
181 InvalidParameter, NotAvailable, InternalError);
209 bool sdoToDFC(
const SDO_ptr sdo, ::OpenRTM::DataFlowComponent_ptr& dfc);
318 ::RTC::ExecutionContext_var
m_ec;
329 rtobj_ = RTC::RTObject::_duplicate(rtobj);
330 profile_ = rtobj->get_component_profile();
331 eclist_ = rtobj->get_owned_contexts();
332 config_ = rtobj->get_configuration();
367 RTC::RTObject_var rtobj(x.
rtobj_);
368 RTC::ComponentProfile_var profile(x.
profile_);
369 RTC::ExecutionContextList_var eclist(x.
eclist_);
397 typedef std::vector<Member>::iterator
MemIt;
417 for (
int i(0), len(p.size()); i < len; ++i)
419 std::cout << p[i] << std::endl;
659 OpenRTM::DataFlowComponent_var
m_ref;
674 #pragma warning( default : 4290 ) 683 #endif // RTC_PERIODICECSHAREDCOMPOSITE_H void removeAllMembers(void)
Remove a member of Organization.
RTC::ComponentProfile_var profile_
::RTC::ExecutionContext_var m_ec
ExecutionContext Object reference.
SDOPackage::PeriodicECOrganization * m_org
Reference of Organization.
::RTC::RTObject_impl * m_rtobj
RT Object.
std::vector< std::string > m_members
Components.
void stopOwnedEC(Member &member)
Stop Owned ExecutionContexts.
Member(RTC::RTObject_ptr rtobj)
SDO Organization implementation class.
std::vector< Member > m_rtcMembers
Member list.
ExecutionContextHandle_t UniqueId
RTC::ExecutionContextList_var eclist_
OpenRTM::DataFlowComponent_var m_ref
Reference of object.
Organization implementation class.
void updateExportedPortsList(void)
PortsList is updated.
virtual ::CORBA::Boolean remove_member(const char *id)
[CORBA interface] Remove a member of Organization
void addPort(Member &member, PortList &portlist)
Delegate given RTC's ports to the Composite.
DLL_EXPORT void PeriodicECSharedCompositeInit(RTC::Manager *manager)
RTC::Logger rtclog
Logger stream.
void startOwnedEC(Member &member)
Start Owned ExecutionContexts.
void removeParticipantFromEC(Member &member)
Remove participant DFC from CompositeRTC's ExecutionContext.
Member & operator=(const Member &x)
PeriodicECOrganization class.
bool sdoToDFC(const SDO_ptr sdo, ::OpenRTM::DataFlowComponent_ptr &dfc)
Conversion from SDO to DFC.
virtual ::CORBA::Boolean set_members(const SDOList &sdos)
[CORBA interface] Set Organization member
SDOPackage::Configuration_var config_
PeriodicExecutionContext class.
void print(PortList p)
Output PortList to StandardOutput.
void removeOrganizationFromTarget(Member &member)
Remove Organization object from a target DFC.
std::vector< std::string > PortList
virtual ~PeriodicECOrganization(void)
Destructor.
PortList m_expPorts
Port List.
void removePort(Member &member, PortList &portlist)
Remove delegated participatns's ports from the composite.
std::vector< Member >::iterator MemIt
void addParticipantToEC(Member &member)
Set CompositeRTC's ExecutionContext to the given DFC.
virtual ::CORBA::Boolean add_members(const SDOList &sdo_list)
[CORBA interface] Add Organization member
void addOrganizationToTarget(Member &member)
Set Organization object to target DFC.
void updateDelegatedPorts(void)
Update/Remove a member of Organization.
PeriodicECOrganization(::RTC::RTObject_impl *rtobj)
Constructor.