OpenRTM-aist-Python 2.0.2
OpenRTM_aist.CorbaNaming.CorbaNaming Class Reference

More...

Public Member Functions

 __init__ (self, orb, name_server=None)
 
 __del__ (self)
 
 init (self, name_server)
 
 isAlive (self)
 
 bind (self, name_list, obj, force=None)
 
 bindByString (self, string_name, obj, force=True)
 
 bindRecursive (self, context, name_list, obj)
 
 rebind (self, name_list, obj, force=True)
 
 rebindByString (self, string_name, obj, force=True)
 
 rebindRecursive (self, context, name_list, obj)
 
 bindContext (self, name, name_cxt, force=True)
 
 bindContextRecursive (self, context, name_list, name_cxt)
 
 rebindContext (self, name, name_cxt, force=True)
 
 rebindContextRecursive (self, context, name_list, name_cxt)
 
 resolve (self, name)
 
 unbind (self, name)
 void unbind(const CosNaming.Name& name) throw(NotFound, CannotProceed, InvalidName);
 
 newContext (self)
 
 bindNewContext (self, name, force=True)
 
 destroy (self, context)
 
 destroyRecursive (self, context)
 
 clearAll (self)
 
 list (self, name_cxt, how_many, rbl, rbi)
 
 toString (self, name_list)
 
 toName (self, sname)
 
 toUrl (self, addr, string_name)
 
 resolveStr (self, string_name)
 
 bindOrResolve (self, context, name_list, obj)
 
 bindOrResolveContext (self, context, name_list, new_context=None)
 
 getNameServer (self)
 
 getRootContext (self)
 
 objIsNamingContext (self, obj)
 
 nameIsNamingContext (self, name_list)
 
 subName (self, name_list, begin, end=None)
 
 nameToString (self, name_list, string_name, slen)
 
 getNameLength (self, name_list)
 
 split (self, input, delimiter, results)
 
 listByKind (self, string_name, string_kind)
 
 listBinding (self, string_name)
 

Detailed Description

CORBA Naming Service helper class

This class is a wrapper class of CosNaming.NamingContext. Almost the same operations which CosNaming.NamingContext has are provided, and some operation allows string naming representation of context and object instead of CosNaming.Name.

The object of the class would connect to a CORBA naming server at the instantiation or immediately after instantiation. After that the object invokes operations to the root context of it. This class realizes forced binding to deep NamingContext, without binding intermediate NamingContexts explicitly.

Since
0.4.0

Constructor & Destructor Documentation

◆ __init__()

OpenRTM_aist.CorbaNaming.CorbaNaming.__init__ ( self,
orb,
name_server = None )

Consructor

◆ __del__()

OpenRTM_aist.CorbaNaming.CorbaNaming.__del__ ( self)

destructor

Member Function Documentation

◆ bind()

OpenRTM_aist.CorbaNaming.CorbaNaming.bind ( self,
name_list,
obj,
force = None )

◆ bindByString()

OpenRTM_aist.CorbaNaming.CorbaNaming.bindByString ( self,
string_name,
obj,
force = True )

◆ bindContext()

OpenRTM_aist.CorbaNaming.CorbaNaming.bindContext ( self,
name,
name_cxt,
force = True )

◆ bindContextRecursive()

OpenRTM_aist.CorbaNaming.CorbaNaming.bindContextRecursive ( self,
context,
name_list,
name_cxt )

◆ bindOrResolve()

OpenRTM_aist.CorbaNaming.CorbaNaming.bindOrResolve ( self,
context,
name_list,
obj )

Bind of resolve the given name component

◆ bindOrResolveContext()

OpenRTM_aist.CorbaNaming.CorbaNaming.bindOrResolveContext ( self,
context,
name_list,
new_context = None )

Bind of resolve the given name component

◆ bindRecursive()

OpenRTM_aist.CorbaNaming.CorbaNaming.bindRecursive ( self,
context,
name_list,
obj )

◆ clearAll()

OpenRTM_aist.CorbaNaming.CorbaNaming.clearAll ( self)

Destroy all binding

◆ destroyRecursive()

OpenRTM_aist.CorbaNaming.CorbaNaming.destroyRecursive ( self,
context )

Destroy the naming context recursively

◆ getNameLength()

OpenRTM_aist.CorbaNaming.CorbaNaming.getNameLength ( self,
name_list )

Get string length of the name component's string representation

◆ getNameServer()

OpenRTM_aist.CorbaNaming.CorbaNaming.getNameServer ( self)

Get the name of naming server

◆ getRootContext()

OpenRTM_aist.CorbaNaming.CorbaNaming.getRootContext ( self)

Get the root context

◆ isAlive()

OpenRTM_aist.CorbaNaming.CorbaNaming.isAlive ( self)

Check on whether the root context is alive. Check on whether the root context is alive.

Parameters
selfbool CorbaNaming.isAlive()

◆ listBinding()

OpenRTM_aist.CorbaNaming.CorbaNaming.listBinding ( self,
string_name )

Get all the binding under given naming path

Parameters
self
string_name
Returns
BindingList_var list(const char* string_name)

◆ listByKind()

OpenRTM_aist.CorbaNaming.CorbaNaming.listByKind ( self,
string_name,
string_kind )

Get all the binding with specified kind under given naming path

Parameters
self
string_namepath
string_kindkind
Returns
BindingList_var listByKind(const char* string_name,const char* string_kind)

◆ nameIsNamingContext()

OpenRTM_aist.CorbaNaming.CorbaNaming.nameIsNamingContext ( self,
name_list )

Whether the given name component is NamingContext

◆ nameToString()

OpenRTM_aist.CorbaNaming.CorbaNaming.nameToString ( self,
name_list,
string_name,
slen )

Get string representation of name component

◆ objIsNamingContext()

OpenRTM_aist.CorbaNaming.CorbaNaming.objIsNamingContext ( self,
obj )

Whether the object is NamingContext

◆ rebind()

OpenRTM_aist.CorbaNaming.CorbaNaming.rebind ( self,
name_list,
obj,
force = True )

◆ rebindByString()

OpenRTM_aist.CorbaNaming.CorbaNaming.rebindByString ( self,
string_name,
obj,
force = True )

◆ rebindContextRecursive()

OpenRTM_aist.CorbaNaming.CorbaNaming.rebindContextRecursive ( self,
context,
name_list,
name_cxt )

◆ rebindRecursive()

OpenRTM_aist.CorbaNaming.CorbaNaming.rebindRecursive ( self,
context,
name_list,
obj )

◆ resolveStr()

OpenRTM_aist.CorbaNaming.CorbaNaming.resolveStr ( self,
string_name )

Resolve from name of string representation and get object

◆ split()

OpenRTM_aist.CorbaNaming.CorbaNaming.split ( self,
input,
delimiter,
results )

Split of string

◆ subName()

OpenRTM_aist.CorbaNaming.CorbaNaming.subName ( self,
name_list,
begin,
end = None )

Get subset of given name component

◆ toName()

OpenRTM_aist.CorbaNaming.CorbaNaming.toName ( self,
sname )

Get NameComponent from gien string name representation

◆ toString()

OpenRTM_aist.CorbaNaming.CorbaNaming.toString ( self,
name_list )

Get string representation of given NameComponent

◆ toUrl()

OpenRTM_aist.CorbaNaming.CorbaNaming.toUrl ( self,
addr,
string_name )

Get URL representation from given addr and string_name


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