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

CORBA Naming Service helper class. More...

Public Member Functions

def __init__ (self, orb, name_server=None)
 Consructor. More...
 
def __del__ (self)
 destructor More...
 
def isAlive (self)
 Check on whether the root context is alive. More...
 
def unbind (self, name)
 void unbind(const CosNaming::Name& name) throw(NotFound, CannotProceed, InvalidName);
 
def destroyRecursive (self, context)
 Destroy the naming context recursively.
 
def clearAll (self)
 Destroy all binding.
 
def toString (self, name_list)
 Get string representation of given NameComponent.
 
def toName (self, sname)
 Get NameComponent from gien string name representation.
 
def toUrl (self, addr, string_name)
 Get URL representation from given addr and string_name.
 
def resolveStr (self, string_name)
 Resolve from name of string representation and get object.
 
def bindOrResolve (self, context, name_list, obj)
 Bind of resolve the given name component.
 
def bindOrResolveContext (self, context, name_list, new_context=None)
 Bind of resolve the given name component.
 
def getNameServer (self)
 Get the name of naming server.
 
def getRootContext (self)
 Get the root context.
 
def objIsNamingContext (self, obj)
 Whether the object is NamingContext.
 
def nameIsNamingContext (self, name_list)
 Whether the given name component is NamingContext.
 
def subName (self, name_list, begin, end=None)
 Get subset of given name component.
 
def nameToString (self, name_list, string_name, slen)
 Get string representation of name component.
 
def getNameLength (self, name_list)
 Get string length of the name component's string representation.
 
def split (self, input, delimiter, results)
 Split of string.
 
def listByKind (self, string_name, string_kind)
 Get all the binding with specified kind under given naming path. More...
 
def listBinding (self, string_name)
 Get all the binding under given naming path. More...
 

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

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

Consructor.

def OpenRTM_aist.CorbaNaming.CorbaNaming.__del__ (   self)

destructor

Member Function Documentation

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

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