Logo Search packages:      
Sourcecode: combat version File versions  Download package

CosNaming.idl

/*
 * COSS Naming 
 */

#pragma prefix "omg.org"

module CosNaming
{
  typedef string Istring;
  
00011   struct NameComponent {
    Istring id;
    Istring kind;
  };
  
  typedef sequence <NameComponent> Name;
  
  enum BindingType {nobject, ncontext};
  
00020   struct Binding {
    Name    binding_name;
    BindingType    binding_type;                            
  };
  
  typedef sequence <Binding> BindingList;
  
  interface BindingIterator;
  
00029   interface NamingContext {
        
    enum NotFoundReason { missing_node, not_context, not_object};
      
00033     exception NotFound { 
      NotFoundReason why;
      Name rest_of_name;
    };

00038     exception CannotProceed {
      NamingContext cxt;
      Name rest_of_name;
    };
    
00043     exception InvalidName{};                                                  
00044     exception AlreadyBound {};
00045     exception NotEmpty{};
    
    void bind(in Name n, in Object obj)         
      raises(NotFound, CannotProceed,
           InvalidName, AlreadyBound);
    void rebind(in Name n, in Object obj) 
      raises(NotFound, CannotProceed,
           InvalidName);
    void bind_context(in Name n, in NamingContext nc)       
      raises(NotFound, CannotProceed,
           InvalidName, AlreadyBound);
    void rebind_context(in Name n, in NamingContext nc)     
      raises(NotFound, CannotProceed,
           InvalidName);
    Object resolve (in Name n)
      raises(NotFound, CannotProceed,
           InvalidName);
    void unbind(in Name n)
      raises(NotFound, CannotProceed,
           InvalidName);
    NamingContext new_context();
    NamingContext bind_new_context(in Name n)
      raises(NotFound, AlreadyBound,
           CannotProceed, InvalidName);
    void destroy( )
      raises(NotEmpty);
    void list (in unsigned long how_many, 
             out BindingList bl, 
             out BindingIterator bi);
  };
  
00076   interface BindingIterator {
    boolean next_one(out Binding b);
    boolean next_n(in unsigned long how_many, 
               out BindingList bl);
    void destroy();
  };

00083   interface NamingContextExt : NamingContext {
    typedef string StringName;
    typedef string Address;
    typedef string URLString;

    StringName to_string (in Name n)
      raises(InvalidName);
    Name to_name (in StringName sn)
      raises(InvalidName);

00093     exception InvalidAddress {};

    URLString to_url (in Address addr, in StringName sn)
      raises (InvalidAddress, InvalidName);
    Object resolve_str (in StringName n)
      raises (NotFound, CannotProceed,
            InvalidName, AlreadyBound);
  };
};


Generated by  Doxygen 1.6.0   Back to index