home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / som30tk.zip / som30os2.zip / include / lname.idl < prev    next >
Text File  |  1996-12-24  |  2KB  |  72 lines

  1. //
  2. //   COMPONENT_NAME: somnm
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996,1996  
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13. //#  @(#) 1.7 src/somnm/naming/lname.idl, somnm, som3.0 5/20/96 16:40:10 [12/24/96 07:59:58]
  14.  
  15. /*
  16.  *    @(#) 1.7 @(#)lname.idl    1.7 1/24/94 10:34:07 [3/30/94 17:08:21]
  17.  */
  18.  
  19. //#----------------------------------------------------------------------#
  20. //#   lname.idl -                                                        #
  21. //#----------------------------------------------------------------------#
  22.  
  23. #ifndef lname_idl
  24. #define lname_idl
  25.  
  26. #include <lnamec.idl>
  27.  
  28. interface LName: SOMObject {
  29.     exception NoComponent{};
  30.     exception OverFlow{};
  31.     exception InvalidName{};
  32.     LName insert_component(in unsigned long i, in LNameComponent n)
  33.         raises(NoComponent, OverFlow);
  34.  
  35.     LNameComponent get_component(in unsigned long i)
  36.         raises(NoComponent);
  37.  
  38.     LNameComponent delete_component(in unsigned long i)
  39.         raises(NoComponent);
  40.  
  41.     unsigned long num_components();
  42.  
  43.     boolean equal(in LName ln);
  44.  
  45.     boolean less_than(in LName ln);
  46.  
  47.     CosNaming::Name to_idl_form()
  48.         raises(InvalidName);
  49.  
  50.     void from_idl_form(in CosNaming::Name n);
  51.  
  52.     void destroy();
  53.  
  54.     #ifdef __SOMIDL__
  55.     implementation {
  56.         releaseorder: to_idl_form, insert_component, get_component, 
  57.             delete_component,
  58.                       num_components, equal, less_than,
  59.                       from_idl_form, destroy;
  60.  
  61.     somDefaultInit: override, init;
  62.     somDestruct: override;
  63.         dllname = "somnmf.dll";
  64.     majorversion = 3;
  65.     minorversion = 0;
  66.     };
  67.     #endif
  68. };
  69.  
  70. #endif /* lname_idl */
  71.  
  72.