OpenRTM-aist-Python 2.0.0
Public Member Functions | List of all members
OpenRTM_aist.CorbaNaming.CorbaNaming Class Reference

More...

Public Member Functions

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

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

Consructor

◆ __del__()

def OpenRTM_aist.CorbaNaming.CorbaNaming.__del__ (   self)

destructor

Member Function Documentation

◆ bind()

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

◆ bindByString()

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

◆ bindContext()

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

◆ bindContextRecursive()

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

◆ bindOrResolve()

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

Bind of resolve the given name component

◆ bindOrResolveContext()

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

Bind of resolve the given name component

◆ bindRecursive()

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

◆ clearAll()

def OpenRTM_aist.CorbaNaming.CorbaNaming.clearAll (   self)

Destroy all binding

◆ destroyRecursive()

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

Destroy the naming context recursively

◆ getNameLength()

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

Get string length of the name component's string representation

◆ getNameServer()

def OpenRTM_aist.CorbaNaming.CorbaNaming.getNameServer (   self)

Get the name of naming server

◆ getRootContext()

def OpenRTM_aist.CorbaNaming.CorbaNaming.getRootContext (   self)

Get the root context

◆ isAlive()

def 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()

def 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()

def 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()

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

Whether the given name component is NamingContext

◆ nameToString()

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

Get string representation of name component

◆ objIsNamingContext()

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

Whether the object is NamingContext

◆ rebind()

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

◆ rebindByString()

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

◆ rebindContextRecursive()

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

◆ rebindRecursive()

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

◆ resolveStr()

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

Resolve from name of string representation and get object

◆ split()

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

Split of string

◆ subName()

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

Get subset of given name component

◆ toName()

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

Get NameComponent from gien string name representation

◆ toString()

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

Get string representation of given NameComponent

◆ toUrl()

def 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: