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

  1. //
  2. //   COMPONENT_NAME: somu
  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. //# @(#) 2.10 src/somu/somida.idl, somu, som3.0 12/26/95 15:30:14 [12/24/96 07:41:16]
  14.  
  15.  
  16. #ifndef somida_idl
  17. #define somida_idl
  18.  
  19. #include <somobj.idl>
  20.  
  21. interface SOMUTId : SOMObject
  22.  
  23. // This is the abstract base class for an ID. Only the interface is
  24. // defined. Refer to derived classes for details.
  25. //
  26. // Instances of classes derived from this one should represent a
  27. // value which can be used to identify something... such as an object,
  28. // a file, a network node, etc, etc...
  29. //
  30.  
  31. {
  32.   void somutSetIdId(in SOMUTId otherId);
  33.   // Sets the ID equal to ID of the given ID.
  34.  
  35.   boolean somutEqualsId(in SOMUTId otherId);
  36.   // Checks to see if this object's ID is equivalent to the given ID.
  37.   // Returns TRUE if the ID's are equivalent, FALSE otherwise.
  38.  
  39.   short somutCompareId(in SOMUTId otherId);
  40.   // Performs an ordered comparison with another Id.
  41.   // If this ID < otherId  -1 is returned.
  42.   // If this ID = otherId   0 is returned.
  43.   // If this ID > otherId   1 is returned.
  44.  
  45.   unsigned long somutHashId();
  46.   // Returns an unsigned integer hash value based on the ID.
  47.  
  48. #ifdef __SOMIDL__
  49.  
  50.   implementation
  51.   {
  52.     callstyle = idl;
  53.  
  54.     releaseorder: somutSetIdId, somutEqualsId, somutCompareId, somutHashId;
  55.  
  56.     filestem = somida;
  57.     majorversion = 2;
  58.     minorversion = 1;
  59.     dllname = "somu.dll";
  60.   };
  61.  
  62. #endif /* __SOMIDL__ */
  63.  
  64. };
  65.  
  66. #endif  /* somida_idl */
  67.