home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / eda.idl < prev    next >
Text File  |  1999-02-22  |  3KB  |  93 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/eda.idl, somp, som2.1 12/26/95 16:53:27 [7/30/96 14:46:48]
  14.  
  15.  
  16.  
  17. #ifndef eda_idl
  18. #define eda_idl
  19.  
  20. #include <somp.idl>
  21. #include <somobj.idl>
  22. #include <somperrd.idl>
  23.  
  24. interface SOMPMediaInterfaceAbstract;
  25. interface SOMPPersistentObject;
  26.  
  27. interface SOMPEncoderDecoderAbstract : SOMObject
  28.  
  29. // This is the abstract class for an EncoderDecoder.
  30. //
  31. // An encoder/decoder is an object which is paired with a persistent object
  32. // and handles the reading/writing of that persistent object's instance
  33. // data.  A class derived from this abstract class must be created and
  34. // paired with a persistent object in order for that persistent object
  35. // to be save/restored.
  36. //
  37. // The derived encoder/decoder class name is bound to a persistent
  38. // object with the sompSetEncoderDecoderName method (see po.sc).
  39. //
  40. // A persistent object's encoder/decoder is instantiated by an
  41. // IO Group Mgr at the moment that object is save/restored.
  42.  
  43. {
  44.    void sompEDWrite(in SOMPMediaInterfaceAbstract thisMedia,
  45.             in SOMPPersistentObject thisObject) raises (SOMPError::sompException);
  46. // This method is responsible for writing out the persistent data of
  47. // object <thisObject> in a format that is compatible with sompEDRead.
  48. // This routine should make use of the media interface that is passed in
  49. // as the first argument <thisMedia>.  This method should assume that
  50. // the media interface has been initialized and opened.  This method
  51. // should also assume that the media interface will be closed by the
  52. // caller of this method.
  53. //
  54. // Refer to the class interface of the media interface passed in for
  55. // the methods which can be used to write instance data.
  56.  
  57.    void sompEDRead(in SOMPMediaInterfaceAbstract thisMedia,
  58.            in SOMPPersistentObject thisObject) raises (SOMPError::sompException);
  59. // This method is responsible for reading in the persistent data of
  60. // object <thisObject>.  It should expect the data to be in the format
  61. // of sompEDWrite.  This routine should make use of the media interface
  62. // that is passed in as the first argument <thisMedia>.  This method
  63. // should assume that the media interface has been initialized and
  64. // opened.  This method should also assume that the media interface will
  65. // be closed by the caller of this method.
  66. //
  67. // Refer to the class interface of the media interface passed in for
  68. // the methods which can be used to read instance data.
  69.  
  70. #ifdef __SOMIDL__
  71.  
  72. implementation
  73. {
  74.   callstyle=idl;
  75.   dllname="somp.dll";
  76.  
  77.   releaseorder: sompEDWrite, sompEDRead;
  78.  
  79. // Class Modifiers
  80.    majorversion = 2;
  81.    minorversion = 1;
  82.    filestem = eda;
  83.  
  84. // Method Modifiers
  85.  
  86. };
  87. #endif /* __SOMIDL__ */
  88.  
  89. };
  90.  
  91.  
  92. #endif  /* eda_idl */
  93.