home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / BENTOHDR.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  4KB  |  155 lines

  1. /* @(#)Z 1.4 com/src/bento/BentoHdr.h, odstorage, od96os2, odos29646d 96/11/15 15:26:07 (96/10/29 09:10:48) */
  2. /*====START_GENERATED_PROLOG======================================
  3.  */
  4. /*
  5.  *   COMPONENT_NAME: odstorage
  6.  *
  7.  *   CLASSES:   ODBentoHandlers
  8.  *
  9.  *   ORIGINS: 82,27
  10.  *
  11.  *
  12.  *   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13.  *   All Rights Reserved
  14.  *   Licensed Materials - Property of IBM
  15.  *   US Government Users Restricted Rights - Use, duplication or
  16.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17.  *       
  18.  *   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19.  *   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20.  *   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21.  *   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22.  *   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23.  *   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24.  *   OR PERFORMANCE OF THIS SOFTWARE.
  25.  */
  26. /*====END_GENERATED_PROLOG========================================
  27.  */
  28.  
  29. /*
  30.     File:        ODBentoHandlers.h
  31.  
  32.     Contains:    Header for ODBentoHandlers
  33.  
  34.     Written by:    Vincent Lo
  35.  
  36.     Copyright:    ⌐ 1993-1994 by Apple Computer, Inc., all rights reserved.
  37.  
  38.     Change History (most recent first):
  39.  
  40.          <1>     5/27/94    VL        first checked in
  41.  
  42.     To Do:
  43. */
  44.  
  45. #ifndef _BENTOHDR_
  46. #define _BENTOHDR_
  47.  
  48. #ifndef _ODTYPES_
  49. #include "ODTypes.h"
  50. #endif
  51.  
  52. #ifndef __CM_API__
  53. #include "CMAPI.h"
  54. #endif
  55.  
  56. #ifndef _PLFMDEF_
  57. #include "PlfmDef.h"
  58. #endif
  59.  
  60. //==============================================================================
  61. // Classes defined in this interface
  62. //==============================================================================
  63. class ODBentoHandlers;
  64.  
  65. //==============================================================================
  66. // containerMetahandler
  67. //==============================================================================
  68.  
  69. CM_CFUNCTIONS
  70.  
  71. CMHandlerAddr CM_FIXEDARGS containerMetahandler(CMType targetType,
  72.                                                 CMconst_CMGlobalName operationType);
  73.  
  74. CM_END_CFUNCTIONS
  75.  
  76. //==============================================================================
  77. // ODFSContainer
  78. //==============================================================================
  79.  
  80. class ODBentoHandlers
  81. {
  82. public:
  83.     
  84.     ODBentoHandlers();
  85.     ODVMethod ~ODBentoHandlers();
  86.     
  87.     ODVMethod void Initialize()
  88.         = 0;
  89.         
  90.     ODVMethod CMSession GetCMSession()
  91.         = 0;
  92.     
  93.     ODVMethod CMRefCon OpenHandler(CMOpenMode mode)
  94.         = 0;
  95.         
  96.     ODVMethod void CloseHandler()
  97.         = 0;
  98.         
  99.     ODVMethod CMSize FlushHandler()
  100.         = 0;
  101.         
  102.     ODVMethod CMSize SeekHandler(CM_LONG posOff, CMSeekMode mode)
  103.         = 0;
  104.         
  105.     ODVMethod CMSize TellHandler()
  106.         = 0;
  107.         
  108.     ODVMethod CMSize ReadHandler(CMPtr buffer, CMSize elementSize, CMCount theCount)
  109.         = 0;
  110.         
  111.     ODVMethod CMSize WriteHandler(CMPtr buffer, CMSize elementSize, CMCount theCount)
  112.         = 0;
  113.         
  114.     ODVMethod CMEofStatus EOFHandler()
  115.         = 0;
  116.         
  117.     ODVMethod CMBoolean TruncHandler(CMSize containerSize)
  118.         = 0;
  119.         
  120.     ODVMethod CMSize ContainerSizeHandler()
  121.         = 0;
  122.         
  123.     ODVMethod void ReadLabelHandler(CMMagicBytes magicByteSequence,
  124.                         CMContainerFlags *flags, CM_USHORT *bufSize,
  125.                         CM_USHORT *majorVersion, CM_USHORT *minorVersion,
  126.                         CMSize *tocOffset, CMSize *tocSize)
  127.         = 0;
  128.         
  129.     ODVMethod void WriteLabelHandler(CMMagicBytes magicByteSequence,
  130.                         CMContainerFlags flags, CM_USHORT bufSize,
  131.                         CM_USHORT majorVersion, CM_USHORT minorVersion,
  132.                         CMSize tocOffset, CMSize tocSize)
  133.         = 0;
  134.         
  135.     ODVMethod CMValue ReturnParentValueHandler()
  136.         = 0;
  137.         
  138.     ODVMethod CM_UCHAR* ReturnContainerNameHandler()
  139.         = 0;
  140.         
  141.     ODVMethod CMType ReturnTargetTypeHandler(CMContainer container)
  142.         = 0;
  143.         
  144.     ODVMethod void ExtractDataHandler(CMDataBuffer buffer,
  145.                             CMSize size, CMPrivateData data)
  146.         = 0;
  147.         
  148.     ODVMethod void FormatDataHandler(CMDataBuffer buffer,
  149.                             CMSize size,
  150.                             CMPrivateData data)
  151.         = 0;
  152. };
  153.  
  154. #endif    // _BENTOHDR_
  155.