home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / fsagm.idl < prev    next >
Text File  |  1999-02-22  |  3KB  |  102 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/fsagm.idl, somp, som2.1 12/26/95 16:55:34 [7/30/96 14:46:51]
  14.  
  15.  
  16.  
  17. #ifndef fsagm_idl
  18. #define fsagm_idl
  19.  
  20. #include <iogma.idl>
  21. #include <somp.idl>
  22. #include <somperrd.idl>
  23. #include <sompstad.idl>
  24.  
  25. interface SOMPAscii : SOMPIOGroupMgrAbstract
  26.  
  27. // This is an IO Group Manager which stores groups of objects
  28. // to the file system using the media interface SOMPAsciiMediaInterface.
  29. //
  30. // This IO Group Manager stores non-object data (for example the number
  31. // of objects in the group) in ASCII format.
  32. // The file is readable but should not be editted.
  33.  
  34. {
  35.  
  36.  
  37.    typedef struct stack_contents {
  38.       string fileName;
  39.       long fileOffset;
  40.    } SOMPTStackContents;
  41.  
  42.    // Following structure represents Table of Contents meta-data
  43.    typedef struct TOC_meta {
  44.       unsigned long numObjects;
  45.       long lastOffset;
  46.    } SOMPTTOCmeta;
  47.  
  48.    // Following structure represents Table of Contents entry data
  49.    typedef struct TOC_entry {
  50.       long   podOffset;
  51.       unsigned short  flags;
  52.       long   podPos;
  53.       long   podLen;
  54.    } SOMPTTOCentry;
  55.  
  56.  
  57. #ifdef __SOMIDL__
  58.  
  59. implementation
  60. {
  61.     callstyle=idl;
  62.     dllname="somp.dll";
  63.  
  64.     releaseorder: sompWriteAnObject, sompReadAnObject,
  65.           sompWriteTOC, sompGroupIsDirty,
  66.           sompObjectIsDirty, sompFindObjectInGroup,
  67.           sompSetHeaderLength, sompGetHeaderLength,
  68.           sompReadTOCOffset, sompWriteTOCOffset,
  69.           sompReadTOCMeta, sompWriteTOCMeta,
  70.           sompReadTOCEntry, sompWriteTOCEntry,
  71.           sompCalcTOCEntryPos, sompCopyGroup,
  72.           sompCopyObjectData;
  73.  
  74. // Class Modifiers
  75.    majorversion = 2;
  76.    minorversion = 1;
  77.    filestem = fsagm;
  78.  
  79.  
  80. // Method Modifiers
  81.    sompNewMediaInterface: override;
  82.    sompGetMediaInterface: override;
  83.    sompFreeMediaInterface: override;
  84.    sompInstantiateMediaInterface: override;
  85.    sompWriteGroup: override;
  86.    sompReadGroup: override;
  87.    sompReadObjectData: override;
  88.    sompDeleteObjectFromGroup: override;
  89.    sompGroupExists: override;
  90.    sompObjectInGroup: override;
  91.    sompMediaFormatOk: override;
  92.    somInit: override;
  93.    somUninit: override;
  94.  
  95. };
  96. #endif /* __SOMIDL__ */
  97.  
  98. };
  99.  
  100.  
  101. #endif  /* fsagm_idl */
  102.