20 #ifndef RTC_PORTADMIN_H 21 #define RTC_PORTADMIN_H 23 #include <rtm/idl/RTCSkel.h> 74 PortAdmin(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa);
161 PortService_ptr
getPortRef(
const char* port_name)
const;
245 bool addPort(PortService_ptr port);
541 :
m_name((const char*)(obj->getProfile().name))
546 std::string name((
const char*)obj->getProfile().name);
585 PortProfile* pp(port->get_port_profile());
602 #endif // RTC_PORTADMIN_H
RTC's Port base class.
port_prof_collect(PortProfileList &p)
void finalizePorts()
Deactivate all Ports and unregister them.
Logger rtclog
Logger stream.
CORBA::ORB_var m_pORB
Reference to ORB.
PortableServer::POA_var m_pPOA
Reference to POA.
RT component logger class.
PortServiceList * getPortServiceList() const
Get PortServiceList.
PortService_ptr getPortRef(const char *port_name) const
Get the reference to Port object.
PortBase * getPort(const char *port_name) const
Get pointer to the Port's servant.
void activatePorts()
Activate all Port interfaces.
port_prof_collect2(PortProfileList &p)
PortProfileList corerection functor.
PortProfileList corerection functor.
Functor to delete the Port.
virtual ~PortAdmin(void)
Destructor.
Class for managing objects.
void registerPort(PortBase &port)
Regsiter the Port.
PortProfileList getPortProfileList() const
Get PorProfileList.
ObjectManager< const char *, PortBase, comp_op< PortBase > > m_portServants
void deactivatePorts()
Deactivate all Port interfaces.
bool removePort(PortBase &port)
Unregister the Port registration.
std::vector< IPortService * > PortServiceList
void deletePortByName(const char *port_name)
Unregister the Port's registration by its name.
void operator()(const PortService_ptr port)
bool addPort(PortBase &port)
Regsiter the Port.
void push_back(CorbaSequence &seq, SequenceElement elem)
Push the new element back to the CORBA sequence.
PortServiceList m_portRefs
List of Port's object references.
void deletePort(PortBase &port)
Unregister the Port registration.
comp_op(const char *_name)
std::vector< PortProfile * > PortProfileList
PortAdmin(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa)
Constructor.
const PortProfile & getPortProfile() const
Get the PortProfile of the Port.
void operator()(const PortBase *port)