CIAO::Utility::NameUtility Class Reference

#include <Server_init.h>

List of all members.

Static Public Member Functions

static bool bind_name (const char *namestr, CORBA::Object_ptr obj, CosNaming::NamingContextExt_var &root)
static void create_name (const char *namestr, CosNaming::Name &)
static void create_context_path (const CosNaming::NamingContextExt_ptr, const CosNaming::Name &)
 For each 'NameComponent' in 'name', create a corresponding 'NamingContext'.
static bool bind_object_path (const CosNaming::NamingContextExt_ptr, const CosNaming::Name &, const CORBA::Object_ptr)
static CosNaming::BindingListlist_bindings (const CosNaming::NamingContext_ptr, const CosNaming::Name &, CORBA::ULong)
static void recursive_unbind (const CosNaming::NamingContext_ptr, const CosNaming::Name &)


Member Function Documentation

bool CIAO::Utility::NameUtility::bind_name ( const char *  namestr,
CORBA::Object_ptr  obj,
CosNaming::NamingContextExt_var &  root 
) [static]

A utility class to bind naming context. This class is contributed by Dipa Suri <dipa.suri@lmco.com>.

The concept/code are derived from http://www.informit.com/articles/article.asp?p=23266&seqNum=6

bool CIAO::Utility::NameUtility::bind_object_path ( const CosNaming::NamingContextExt_ptr  nc,
const CosNaming::Name name,
const CORBA::Object_ptr  obj 
) [static]

For the first [0, length-2] NameComponents of 'name', create a corresponding 'NamingContext'. For the length-1 NameComponent of 'name', bind it to the object reference 'obj'.

void CIAO::Utility::NameUtility::create_context_path ( const CosNaming::NamingContextExt_ptr  nc,
const CosNaming::Name name 
) [static]

For each 'NameComponent' in 'name', create a corresponding 'NamingContext'.

void CIAO::Utility::NameUtility::create_name ( const char *  namestr,
CosNaming::Name name 
) [static]

CosNaming::BindingList * CIAO::Utility::NameUtility::list_bindings ( const CosNaming::NamingContext_ptr  nc,
const CosNaming::Name name,
CORBA::ULong  max_list_size 
) [static]

Get a list of all bindings under the given context, up to max_list_size.

void CIAO::Utility::NameUtility::recursive_unbind ( const CosNaming::NamingContext_ptr  nc,
const CosNaming::Name name 
) [static]

Recursively unbind all objects and contexts below the given name context, given the initial context nc. Assumes a tree shape to service (not cyclic)


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

Generated on Mon Jul 13 17:17:32 2009 for CIAO by  doxygen 1.5.8