20#ifndef RTC_PORTADMIN_H
21#define RTC_PORTADMIN_H
23#include <rtm/idl/RTCSkel.h>
76 PortAdmin(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa);
498 CORBA::ORB_var m_pORB;
507 PortableServer::POA_var m_pPOA;
516 PortServiceList m_portRefs;
538 explicit comp_op(
const char* _name)
542 explicit comp_op(T* obj)
543 : m_name(static_cast<const char*>(obj->getProfile().name))
546 bool operator()(T* obj)
548 std::string name(
static_cast<const char*
>(obj->getProfile().name));
549 return m_name == name;
562 class port_prof_collect
565 explicit port_prof_collect(PortProfileList& p) : m_p(p) {}
566 void operator()(
const PortBase* port)
571 PortProfileList& m_p;
581 class port_prof_collect2
584 explicit port_prof_collect2(PortProfileList& p) : m_p(p) {}
585#ifdef ORB_IS_ORBEXPRESS
586 void operator()(
const PortService_var port)
588 void operator()(
const PortService_ptr port)
591 PortProfile* pp(port->get_port_profile());
596 PortProfileList& m_p;
599 struct find_port_name;
RT component logger class.
Class for managing objects.
Definition ObjectManager.h:52
Logger class.
Definition SystemLogger.h:101
PortAdmin class.
Definition PortAdmin.h:55
void deletePort(PortService_ptr port)
Unregister the Port registration.
void deletePortByName(const char *port_name)
Unregister the Port's registration by its name.
bool removePort(PortService_ptr port)
Unregister the Port registration.
void finalizePorts()
Deactivate all Ports and unregister them.
virtual ~PortAdmin()
Destructor.
bool addPort(PortBase &port)
Regsiter the Port.
PortBase * getPort(const char *port_name) const
Get pointer to the Port's servant.
void registerPort(PortBase &port)
Regsiter the Port.
PortServiceList * getPortServiceList() const
Get PortServiceList.
bool removePort(PortBase &port)
Unregister the Port registration.
void activatePorts()
Activate all Port interfaces.
PortAdmin(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa)
Constructor.
void registerPort(PortService_ptr port)
Regsiter the Port.
void deletePort(PortBase &port)
Unregister the Port registration.
void deactivatePorts()
Deactivate all Port interfaces.
bool addPort(PortService_ptr port)
Regsiter the Port.
PortService_ptr getPortRef(const char *port_name) const
Get the reference to Port object.
PortProfileList getPortProfileList() const
Get PorProfileList.
Port base class.
Definition PortBase.h:132
void push_back(CorbaSequence &seq, SequenceElement elem)
Push the new element back to the CORBA sequence.
Definition CORBA_SeqUtil.h:175