home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / somida.idl < prev    next >
Encoding:
Text File  |  1996-02-21  |  1.6 KB  |  64 lines

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