home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / poida.idl < prev    next >
Text File  |  1999-02-22  |  2KB  |  66 lines

  1. //
  2. //   COMPONENT_NAME: somp
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,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.9 src/somp/poida.idl, somp, som2.1 12/26/95 16:59:36 [7/30/96 14:46:58]
  14.  
  15.  
  16. #ifndef poida_idl
  17. #define poida_idl
  18.  
  19. #include <somp.idl>
  20. #include <somobj.idl>
  21. #include <somperrd.idl>
  22.  
  23. interface SOMPPersistentId;
  24.  
  25. interface SOMPIdAssignerAbstract : SOMObject
  26.  
  27. // This is the abstract contract for an ID Assigner. The ID in
  28. // this case is an ID for a persistent object. An ID Assigner is
  29. // used at the time a persistent object is initialized.
  30.  
  31. {
  32.    void sompGetSystemAssignedId(inout SOMPPersistentId id) raises(SOMPError::sompException);
  33. //
  34. // Assign a system ID.
  35. // Input: Pointer to persistent ID object
  36. // Output: Returns nonzero error if ID could not be assigned,
  37. //         otherwise, returns 0.
  38. //         This method allocates the ID object.
  39. //         Freeing the storage space is the
  40. //         responsibility of the persistent object (po.c) at uninit.
  41.  
  42. #ifdef __SOMIDL__
  43.  
  44. implementation
  45. {
  46.     callstyle=idl;
  47.     dllname="somp.dll";
  48.  
  49.     releaseorder: sompGetSystemAssignedId;
  50.  
  51.  
  52. // Class Modifiers
  53.    majorversion = 2;
  54.    minorversion = 1;
  55.    filestem = poida;
  56.  
  57. // Method Modifiers
  58.  
  59. };
  60. #endif /* __SOMIDL__ */
  61.  
  62. };
  63.  
  64.  
  65. #endif  /* poida_idl */
  66.