diff options
Diffstat (limited to 'CIAO/DAnCE/LocalityManager/Daemon/Name_Utilities.h')
-rw-r--r-- | CIAO/DAnCE/LocalityManager/Daemon/Name_Utilities.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/CIAO/DAnCE/LocalityManager/Daemon/Name_Utilities.h b/CIAO/DAnCE/LocalityManager/Daemon/Name_Utilities.h new file mode 100644 index 00000000000..2685ee36012 --- /dev/null +++ b/CIAO/DAnCE/LocalityManager/Daemon/Name_Utilities.h @@ -0,0 +1,40 @@ +/** + * @file Name_Utilities.h + * @author William R. Otte <wotte@dre.vanderbilt.edu> + * // $Id$ + * A set of utility methods to manages references. + * + */ + +#ifndef NAME_UTILITIES_H +#define NAME_UTILITIES_H + +#include "orbsvcs/CosNamingC.h" + +namespace DAnCE +{ + namespace Name_Utilities + { + /// Write IOR to named file. Will overwrite file if present. + bool write_ior (const ACE_TCHAR *file, const char *ior); + + /// Binds object to provided name, which may be formatted with / to indicate + /// naming contexts, e.g. A/B/C. + bool bind_object (const char *name, + CORBA::Object_ptr obj, + CosNaming::NamingContext_ptr); + + /// Will unbind the provided name. + bool unbind_object (const char *name, + CosNaming::NamingContext_ptr); + + void bind_context (CosNaming::Name &nm, + CosNaming::NamingContext_ptr); + + void build_name (const char *nm, + CosNaming::Name &); + + } +} + +#endif /* NAME_UTILITIES_H */ |