PortProfile helper class. More...
#include <PortProfileHelper.h>
Classes | |
struct | conn_id |
struct | conn_name |
struct | if_name |
Public Member Functions | |
void | appendConnectorProfile (ConnectorProfile conn_profile) |
Append ConnectorProfile. | |
void | appendPortInterfaceProfile (PortInterfaceProfile if_prof) |
Append PortInterfaceProfile to the PortProfile. | |
void | eraseConnectorProfile (const char *name) |
Erase ConnectorProfile. | |
void | eraseConnectorProfileById (const char *id) |
Erase ConnectorProfile. | |
void | erasePortInterfaceProfile (const char *instance_name) |
Erase PortInterfaceProfile from the PortProfile. | |
const ConnectorProfile | getConnectorProfile (const char *name) const |
Get ConnectorProfile. | |
const ConnectorProfile | getConnectorProfileById (const char *id) const |
Get ConnectorProfile. | |
const ConnectorProfileList | getConnectorProfiles () const |
Get ConnectorProfileList. | |
const char * | getName () const |
Get PortProfile.name. | |
RTObject_ptr | getOwner () const |
Get owner's object reference from the PortProfile. | |
const PortInterfaceProfile | getPortInterfaceProfile (const char *instance_name) const |
Get PortInterfaceProfile. | |
const PortInterfaceProfileList & | getPortInterfaceProfiles () const |
Get PortInterfaceProfileList. | |
PortProfile * | getPortProfile () |
Get PortProfile. | |
PortService_ptr | getPortRef () const |
Get Port's object reference. | |
const NVList & | getProperties () const |
Get properties of the PortProfile. | |
PortProfileHelper () | |
Constructor. | |
void | setName (const char *name) |
Set PortProfile.name. | |
void | setOwner (RTObject_ptr owner) |
Set owner's object reference to the PortProfile. | |
void | setPortProfile (const PortProfile &profile) |
Set PortProfile. | |
void | setPortRef (PortService_ptr port) |
Set Port's object reference. | |
void | setProperties (NVList &prop) |
Set properties to the PortProfile. | |
virtual | ~PortProfileHelper (void) |
Destructor. | |
Private Types | |
typedef SequenceEx < ConnectorProfileList, ConnectorProfile, Mutex > | ConnProfiles |
typedef SequenceEx < PortInterfaceProfileList, PortInterfaceProfile, Mutex > | IfProfiles |
typedef coil::Mutex | Mutex |
Private Attributes | |
ConnProfiles | m_connProfiles |
IfProfiles | m_ifProfiles |
Mutex | m_mutex |
std::string | m_name |
RTObject_var | m_owner |
PortService_var | m_portRef |
NVList | m_properties |
PortProfile helper class.
This class manages the PortProfile that is profiles of the RTC:Port. This is mainly used in PortBase class.
Definition at line 57 of file PortProfileHelper.h.
typedef SequenceEx<ConnectorProfileList, ConnectorProfile, Mutex> RTC::PortProfileHelper::ConnProfiles [private] |
Definition at line 574 of file PortProfileHelper.h.
typedef SequenceEx<PortInterfaceProfileList, PortInterfaceProfile, Mutex> RTC::PortProfileHelper::IfProfiles [private] |
Definition at line 565 of file PortProfileHelper.h.
typedef coil::Mutex RTC::PortProfileHelper::Mutex [private] |
Definition at line 59 of file PortProfileHelper.h.
RTC::PortProfileHelper::~PortProfileHelper | ( | void | ) | [virtual] |
void RTC::PortProfileHelper::appendConnectorProfile | ( | ConnectorProfile | conn_profile | ) |
Append ConnectorProfile.
This operation appends the ConnectorProfile to the PortProfile.
conn_profile | ConnectorProfile to be added. |
Definition at line 212 of file PortProfileHelper.cpp.
void RTC::PortProfileHelper::appendPortInterfaceProfile | ( | PortInterfaceProfile | if_prof | ) |
Append PortInterfaceProfile to the PortProfile.
This operation appends the PortInterfaceProfile to the PortProfile
if_profile | PortInterfaceProfile to be appended the PortProfile |
Definition at line 118 of file PortProfileHelper.cpp.
void RTC::PortProfileHelper::eraseConnectorProfile | ( | const char * | name | ) |
Erase ConnectorProfile.
This operation erases the ConnectorProfile from the PortProfile.
name | The name of the ConnectorProfile to be erased. |
Definition at line 276 of file PortProfileHelper.cpp.
void RTC::PortProfileHelper::eraseConnectorProfileById | ( | const char * | id | ) |
Erase ConnectorProfile.
This operation erases the ConnectorProfile from the PortProfile.
id | The ID of the ConnectorProfile to be erased. |
Definition at line 292 of file PortProfileHelper.cpp.
void RTC::PortProfileHelper::erasePortInterfaceProfile | ( | const char * | instance_name | ) |
Erase PortInterfaceProfile from the PortProfile.
This operation erases the PortInterfaceProfile from the PortProfile
instance_name | PortInterfaceProfile to be erased from the PortProfile |
Definition at line 166 of file PortProfileHelper.cpp.
const ConnectorProfile RTC::PortProfileHelper::getConnectorProfile | ( | const char * | name | ) | const |
Get ConnectorProfile.
This operation returns the ConnectorProfile specified by name.
name | The name of ConnectorProfile |
Definition at line 244 of file PortProfileHelper.cpp.
const ConnectorProfile RTC::PortProfileHelper::getConnectorProfileById | ( | const char * | id | ) | const |
Get ConnectorProfile.
This operation returns the ConnectorProfile specified by ID.
id | The ID of ConnectorProfile |
Definition at line 260 of file PortProfileHelper.cpp.
const ConnectorProfileList RTC::PortProfileHelper::getConnectorProfiles | ( | ) | const |
Get ConnectorProfileList.
This operation returns the list of ConnectorProfile of the PortProfile.
Definition at line 227 of file PortProfileHelper.cpp.
const char * RTC::PortProfileHelper::getName | ( | void | ) | const |
Get PortProfile.name.
This operation returns a pointer to the PortProfile.name.
Definition at line 102 of file PortProfileHelper.cpp.
RTObject_ptr RTC::PortProfileHelper::getOwner | ( | ) | const |
Get owner's object reference from the PortProfile.
This operation returns the owner's object reference of the PortProfile.
Definition at line 322 of file PortProfileHelper.cpp.
const PortInterfaceProfile RTC::PortProfileHelper::getPortInterfaceProfile | ( | const char * | instance_name | ) | const |
Get PortInterfaceProfile.
This operation returns the PortInterfaceProfile specified by instance_name.
instance_name | instance_name of the PortInterfaceProfile |
Definition at line 151 of file PortProfileHelper.cpp.
const PortInterfaceProfileList & RTC::PortProfileHelper::getPortInterfaceProfiles | ( | ) | const |
Get PortInterfaceProfileList.
This operation returns the PortInterfaceProfileList.
Definition at line 135 of file PortProfileHelper.cpp.
PortProfile * RTC::PortProfileHelper::getPortProfile | ( | ) |
Get PortProfile.
This operation returns the PortProfile.
Definition at line 64 of file PortProfileHelper.cpp.
PortService_ptr RTC::PortProfileHelper::getPortRef | ( | ) | const |
Get Port's object reference.
This operation returns the object reference of the PortProfile.
Definition at line 197 of file PortProfileHelper.cpp.
const NVList & RTC::PortProfileHelper::getProperties | ( | ) | const |
Get properties of the PortProfile.
This operation returns the properties of the PortProfile.
Definition at line 352 of file PortProfileHelper.cpp.
void RTC::PortProfileHelper::setName | ( | const char * | name | ) |
Set PortProfile.name.
This operation stores a copy of given name to the PortProfile.name.
name | The name of Port to be stored to the PortProfile.name. |
Definition at line 87 of file PortProfileHelper.cpp.
void RTC::PortProfileHelper::setOwner | ( | RTObject_ptr | owner | ) |
Set owner's object reference to the PortProfile.
This operation sets the owner's object reference to the PortProfile.
owner | The owner's object reference of PortProfile. |
Definition at line 308 of file PortProfileHelper.cpp.
void RTC::PortProfileHelper::setPortProfile | ( | const PortProfile & | profile | ) |
Set PortProfile.
This operation copies the given PortProfile and overwrites the existent PortProfile by the given ProtProfile.
PortProfile | The PortProfile to be stored. |
Definition at line 42 of file PortProfileHelper.cpp.
void RTC::PortProfileHelper::setPortRef | ( | PortService_ptr | port | ) |
Set Port's object reference.
This operation set the object reference of the Port.
port | Port's object reference to be set. |
Definition at line 182 of file PortProfileHelper.cpp.
void RTC::PortProfileHelper::setProperties | ( | NVList & | prop | ) |
Set properties to the PortProfile.
This operation set the properties to the PortProfile.
prop | The NVList of PortProfile's properties. |
Definition at line 337 of file PortProfileHelper.cpp.
Definition at line 575 of file PortProfileHelper.h.
Definition at line 566 of file PortProfileHelper.h.
Mutex RTC::PortProfileHelper::m_mutex [mutable, private] |
Definition at line 584 of file PortProfileHelper.h.
std::string RTC::PortProfileHelper::m_name [private] |
Definition at line 560 of file PortProfileHelper.h.
RTObject_var RTC::PortProfileHelper::m_owner [private] |
Definition at line 578 of file PortProfileHelper.h.
PortService_var RTC::PortProfileHelper::m_portRef [private] |
Definition at line 569 of file PortProfileHelper.h.
NVList RTC::PortProfileHelper::m_properties [private] |
Definition at line 581 of file PortProfileHelper.h.