OpenRTM-aist 2.0.2
Loading...
Searching...
No Matches
RTC::NamingOnCorba Class Reference

NamingServer management class for CORBA. More...

#include <NamingManager.h>

Inheritance diagram for RTC::NamingOnCorba:
Collaboration diagram for RTC::NamingOnCorba:

Public Member Functions

 NamingOnCorba (CORBA::ORB_ptr orb, const char *names)
 Constructor.
 
 ~NamingOnCorba () override=default
 Destructor.
 
void bindObject (const char *name, const RTObject_impl *rtobj) override
 Bind the specified CORBA objects to NamingService.
 
void bindObject (const char *name, const PortBase *port) override
 Pure virtual function to bind the specified objects to the NamingService.
 
void bindObject (const char *name, const RTM::ManagerServant *mgr) override
 Bind the specified ManagerServants to NamingService.
 
void unbindObject (const char *name) override
 Unbind the specified CORBA objects from NamingService.
 
bool isAlive () override
 Check if the name service is alive.
 
void getComponentByName (CosNaming::NamingContext_ptr context, const std::string &name, RTC::RTCList &rtcs)
 
RTC::RTCList string_to_component (std::string name) override
 
CorbaNaminggetCorbaNaming ()
 
- Public Member Functions inherited from RTC::NamingBase
 NamingBase ()=default
 Constructor.
 
virtual ~NamingBase ()=default
 Destructor.
 

Detailed Description

NamingServer management class for CORBA.

NamingServer management class for CORBA. Manage to register and unregister CORBA components to NamingService.

Since
0.4.0

Constructor & Destructor Documentation

◆ NamingOnCorba()

RTC::NamingOnCorba::NamingOnCorba ( CORBA::ORB_ptr orb,
const char * names )

Constructor.

Constructor. Naming service name that is given at the second argument is host name and port number hoined with ":". If the port number is abbreviated, the default port number 2809 is used.

Parameters
orbORB
namesName of NamingServer

◆ ~NamingOnCorba()

RTC::NamingOnCorba::~NamingOnCorba ( )
overridedefault

Destructor.

Member Function Documentation

◆ bindObject() [1/3]

void RTC::NamingOnCorba::bindObject ( const char * name,
const PortBase * port )
overridevirtual

Pure virtual function to bind the specified objects to the NamingService.

Parameters
nameThe name to be bound to the NamingService
rtobjThe target objects to be bound to the NamingSerivce

Implements RTC::NamingBase.

◆ bindObject() [2/3]

void RTC::NamingOnCorba::bindObject ( const char * name,
const RTM::ManagerServant * mgr )
overridevirtual

Bind the specified ManagerServants to NamingService.

Parameters
nameNames at the binding
mgrThe target ManagerServants for the binding

Implements RTC::NamingBase.

◆ bindObject() [3/3]

void RTC::NamingOnCorba::bindObject ( const char * name,
const RTObject_impl * rtobj )
overridevirtual

Bind the specified CORBA objects to NamingService.

Bind the specified CORBA objects to CORBA NamingService by specified names.

Parameters
nameNames at the binding
rtobjThe target objects for the binding

Implements RTC::NamingBase.

◆ getComponentByName()

void RTC::NamingOnCorba::getComponentByName ( CosNaming::NamingContext_ptr context,
const std::string & name,
RTC::RTCList & rtcs )
Parameters
context
name
rtcs

◆ getCorbaNaming()

CorbaNaming & RTC::NamingOnCorba::getCorbaNaming ( )
inline

◆ isAlive()

bool RTC::NamingOnCorba::isAlive ( )
overridevirtual

Check if the name service is alive.

Returns
true: alive, false:non not alive

Implements RTC::NamingBase.

◆ string_to_component()

RTC::RTCList RTC::NamingOnCorba::string_to_component ( std::string name)
overridevirtual
Parameters
name
Returns

Implements RTC::NamingBase.

◆ unbindObject()

void RTC::NamingOnCorba::unbindObject ( const char * name)
overridevirtual

Unbind the specified CORBA objects from NamingService.

Unbind the specified CORBA objects from CORBA NamingService.

Parameters
nameThe target objects for the unbinding

Implements RTC::NamingBase.


The documentation for this class was generated from the following file: