2
#ifndef _CosNaming_IDL_
3
#define _CosNaming_IDL_
5
#pragma prefix "omg.org"
8
typedef string Istring;
14
typedef sequence<NameComponent> Name;
23
BindingType binding_type;
26
typedef sequence<Binding> BindingList;
28
interface BindingIterator;
30
interface NamingContext {
42
exception CannotProceed {
47
exception InvalidName{};
48
exception AlreadyBound{};
51
void bind(in Name n, in Object obj)
52
raises(NotFound, CannotProceed, InvalidName, AlreadyBound);
53
void rebind(in Name n, in Object obj)
54
raises(NotFound, CannotProceed, InvalidName);
55
void bind_context(in Name n, in NamingContext nc)
56
raises(NotFound, CannotProceed, InvalidName, AlreadyBound);
57
void rebind_context(in Name n, in NamingContext nc)
58
raises(NotFound, CannotProceed, InvalidName);
59
Object resolve(in Name n)
60
raises(NotFound, CannotProceed, InvalidName);
61
void unbind(in Name n)
62
raises(NotFound, CannotProceed, InvalidName);
63
NamingContext new_context();
64
NamingContext bind_new_context(in Name n)
65
raises(NotFound, AlreadyBound, CannotProceed, InvalidName);
68
void list(in unsigned long how_many, out BindingList bl,
69
out BindingIterator bi);
72
interface BindingIterator {
73
boolean next_one(out Binding b);
74
boolean next_n(in unsigned long how_many, out BindingList bl);
78
interface NamingContextExt: NamingContext {
79
typedef string StringName;
80
typedef string Address;
81
typedef string URLString;
83
StringName to_string(in Name n)
85
Name to_name(in StringName sn)
88
exception InvalidAddress {};
90
URLString to_url(in Address addr, in StringName sn)
91
raises(InvalidAddress, InvalidName);
92
Object resolve_str(in StringName n)
93
raises( NotFound, CannotProceed, InvalidName );
97
#endif /* !_CosNaming_IDL_ */