19#ifndef RTC_PORTPROFILEHELPER_H
20#define RTC_PORTPROFILEHELPER_H
30#include <rtm/idl/RTCSkel.h>
251 const PortInterfaceProfile
562 using IfProfiles = SequenceEx<PortInterfaceProfileList,
563 PortInterfaceProfile,
565 IfProfiles m_ifProfiles;
568 PortService_var m_portRef;
571 using ConnProfiles = SequenceEx<ConnectorProfileList,
574 ConnProfiles m_connProfiles;
577 RTObject_var m_owner;
582 mutable std::mutex m_mutex;
588 explicit if_name(
const char* name) : m_name(name) {}
589 bool operator()(
const PortInterfaceProfile& p)
591 std::string name(p.instance_name);
592 return m_name == name;
594 const std::string m_name;
600 explicit conn_name(
const char* name) : m_name(name) {}
601 bool operator()(
const ConnectorProfile& c)
603 std::string name(c.name);
604 return m_name == name;
606 const std::string m_name;
612 explicit conn_id(
const char*
id) : m_id(id) {}
613 bool operator()(
const ConnectorProfile& c)
615 std::string id(c.connector_id);
618 const std::string m_id;
PortProfile helper class.
Definition PortProfileHelper.h:58
PortProfile * getPortProfile()
Get PortProfile.
void eraseConnectorProfile(const char *name)
Erase ConnectorProfile.
const ConnectorProfileList getConnectorProfiles() const
Get ConnectorProfileList.
void erasePortInterfaceProfile(const char *instance_name)
Erase PortInterfaceProfile from the PortProfile.
void appendPortInterfaceProfile(PortInterfaceProfile if_prof)
Append PortInterfaceProfile to the PortProfile.
RTObject_ptr getOwner() const
Get owner's object reference from the PortProfile.
const PortInterfaceProfileList & getPortInterfaceProfiles() const
Get PortInterfaceProfileList.
void eraseConnectorProfileById(const char *id)
Erase ConnectorProfile.
void setPortRef(PortService_ptr port)
Set Port's object reference.
const ConnectorProfile getConnectorProfileById(const char *id) const
Get ConnectorProfile.
const char * getName() const
Get PortProfile.name.
PortProfileHelper()
Constructor.
virtual ~PortProfileHelper(void)
Destructor.
const ConnectorProfile getConnectorProfile(const char *name) const
Get ConnectorProfile.
void setOwner(RTObject_ptr owner)
Set owner's object reference to the PortProfile.
void setName(const char *name)
Set PortProfile.name.
void setPortProfile(const PortProfile &profile)
Set PortProfile.
void setProperties(NVList &prop)
Set properties to the PortProfile.
const PortInterfaceProfile getPortInterfaceProfile(const char *instance_name) const
Get PortInterfaceProfile.
PortService_ptr getPortRef() const
Get Port's object reference.
void appendConnectorProfile(ConnectorProfile conn_profile)
Append ConnectorProfile.
const NVList & getProperties() const
Get properties of the PortProfile.