diff options
Diffstat (limited to 'CIAO/ciao/Server_init.h')
-rw-r--r-- | CIAO/ciao/Server_init.h | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/CIAO/ciao/Server_init.h b/CIAO/ciao/Server_init.h index b801d195c5f..db9b126f37d 100644 --- a/CIAO/ciao/Server_init.h +++ b/CIAO/ciao/Server_init.h @@ -8,6 +8,7 @@ * * @author Nanbor Wang <nanbor@cs.wustl.edu> * @author Gan Deng <dengg@dre.vanderbilt.edu> + * @author William R. Otte <wotte@dre.vanderbilt.edu> */ #ifndef CIAO_SERVER_INIT_H @@ -21,7 +22,9 @@ #pragma once #endif /* ! ACE_LACKS_PRAGMA_ONCE */ -#include <orbsvcs/CosNamingC.h> +#include "ace/SString.h" +#include "orbsvcs/CosNamingC.h" +#include "ccm/CCM_StandardConfiguratorC.h" TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace CORBA @@ -49,41 +52,48 @@ namespace CIAO /// overwritten. CIAO_SERVER_Export int write_IOR (const char *pathname, const char *IOR); - + class CIAO_SERVER_Export NameUtility { /** - * 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 - */ - + * 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 + */ + public: + static bool bind_name (const char *namestr, + CORBA::Object_ptr obj, + CosNaming::NamingContextExt_var &root); + + static void create_name (const char *namestr, CosNaming::Name &); + /// For each 'NameComponent' in 'name', create a corresponding 'NamingContext'. - static void CreateContextPath (const CosNaming::NamingContextExt_ptr, - const CosNaming::Name &); + static void create_context_path (const CosNaming::NamingContextExt_ptr, + const CosNaming::Name &); /// 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'. - static void BindObjectPath (const CosNaming::NamingContextExt_ptr, - const CosNaming::Name&, - const CORBA::Object_ptr); + static bool bind_object_path (const CosNaming::NamingContextExt_ptr, + const CosNaming::Name&, + const CORBA::Object_ptr); /// Get a list of all bindings under the given context, up to /// max_list_size. - static CosNaming::BindingList * listBindings (const CosNaming::NamingContext_ptr, - const CosNaming::Name&, - CORBA::ULong); + static CosNaming::BindingList * list_bindings (const CosNaming::NamingContext_ptr, + const CosNaming::Name&, + CORBA::ULong); /// Recursively unbind all objects and contexts below the given name /// context, given the initial context nc. /// Assumes a tree shape to service (not cyclic) - static void recursiveUnbind (const CosNaming::NamingContext_ptr, - const CosNaming::Name&); + static void recursive_unbind (const CosNaming::NamingContext_ptr, + const CosNaming::Name&); + }; } } |