19 #ifndef RTC_PORTPROFILEHELPER_H
20 #define RTC_PORTPROFILEHELPER_H
31 #include <rtm/idl/RTCSkel.h>
160 void setName(
const char* name);
252 const PortInterfaceProfile
563 typedef SequenceEx<PortInterfaceProfileList,
564 PortInterfaceProfile,
566 IfProfiles m_ifProfiles;
569 PortService_var m_portRef;
572 typedef SequenceEx<ConnectorProfileList,
575 ConnProfiles m_connProfiles ;
578 RTObject_var m_owner;
584 mutable Mutex m_mutex;
590 if_name(
const char* name) : m_name(name) {};
591 bool operator()(
const PortInterfaceProfile& p)
593 std::string name(p.instance_name);
594 return m_name == name;
596 const std::string m_name;
602 conn_name(
const char* name) : m_name(name) {};
603 bool operator()(
const ConnectorProfile& c)
605 std::string name(c.name);
606 return m_name == name;
608 const std::string m_name;
614 conn_id(
const char*
id) : m_id(
id) {};
615 bool operator()(
const ConnectorProfile& c)
617 std::string id(c.connector_id);
620 const std::string m_id;
625 #endif // RTC_PORTPROFILEHELPER_H
const char * getName() const
Get PortProfile.name.
void setProperties(NVList &prop)
Set properties to the PortProfile.
RTObject_ptr getOwner() const
Get owner's object reference from the PortProfile.
PortProfileHelper()
Constructor.
const PortInterfaceProfile getPortInterfaceProfile(const char *instance_name) const
Get PortInterfaceProfile.
Mutex class.
Definition: Mutex.h:40
void appendPortInterfaceProfile(PortInterfaceProfile if_prof)
Append PortInterfaceProfile to the PortProfile.
virtual ~PortProfileHelper(void)
Destructor.
void appendConnectorProfile(ConnectorProfile conn_profile)
Append ConnectorProfile.
const ConnectorProfileList getConnectorProfiles() const
Get ConnectorProfileList.
void setPortRef(PortService_ptr port)
Set Port's object reference.
void setName(const char *name)
Set PortProfile.name.
void erasePortInterfaceProfile(const char *instance_name)
Erase PortInterfaceProfile from the PortProfile.
const NVList & getProperties() const
Get properties of the PortProfile.
void setPortProfile(const PortProfile &profile)
Set PortProfile.
PortProfile helper class.
Definition: PortProfileHelper.h:57
void eraseConnectorProfileById(const char *id)
Erase ConnectorProfile.
const ConnectorProfile getConnectorProfileById(const char *id) const
Get ConnectorProfile.
void setOwner(RTObject_ptr owner)
Set owner's object reference to the PortProfile.
PortService_ptr getPortRef() const
Get Port's object reference.
PortProfile * getPortProfile()
Get PortProfile.
void eraseConnectorProfile(const char *name)
Erase ConnectorProfile.
const ConnectorProfile getConnectorProfile(const char *name) const
Get ConnectorProfile.
const PortInterfaceProfileList & getPortInterfaceProfiles() const
Get PortInterfaceProfileList.