DEFINITION MODULE WPSHRED;

(***************************************************************************
  OS/2 2.1 Workplace class interface for WPShredder;

  Copyright (c) 1994 by Juergen Neuhoff
****************************************************************************)

(*$XL+       Modula-2 language extensions: '_' allowed for symbol names *)
(*$CDECL+    C-style procedures                                         *)
(*$A         default alignment for record fields                        *)

IMPORT SOM;
IMPORT WPABS;

TYPE PSOMClass              = SOM.PSOMClass;
TYPE INTEGER4               = SOM.INTEGER4;
TYPE somMToken              = SOM.somMToken;
TYPE somDToken              = SOM.somDToken;
TYPE somMethodProc          = SOM.somMethodProc;
TYPE PWPShredder            = POINTER TO WPShredder;
TYPE PM_WPShredder          = POINTER TO M_WPShredder;

(************************************************************************
  Additional TYPE- and CONST-declarations supporting WPShredder
*************************************************************************)


(*************************************************************************
  SOM class API for WPShredder, including type-bound procedures
**************************************************************************)

CONST
  WPShredder_MajorVersion     = 1;
  WPShredder_MinorVersion     = 2;

TYPE
  WPShredderClassDataStructure   = RECORD
    classObject                    : PSOMClass;
                                   END;

VAR
  WPShredderClassData : WPShredderClassDataStructure;

TYPE
  (*$SOM+ *)
  WPShredder = RECORD( WPABS.WPAbstract ) END;
  (*$SOM- *)


PROCEDURE WPShredderNewClass
(
  majorVersion  : INTEGER4;
  minorVersion  : INTEGER4
)               : PSOMClass;


(*************************************************************************
  SOM class API for M_WPShredder, including type-bound procedures
**************************************************************************)

CONST
  M_WPShredder_MajorVersion   = 1;
  M_WPShredder_MinorVersion   = 2;

TYPE
  M_WPShredderClassDataStructure   = RECORD
    classObject                      : PSOMClass;
                                     END;

VAR
  M_WPShredderClassData : M_WPShredderClassDataStructure;

TYPE
  (*$SOM+ *)
  M_WPShredder = RECORD( WPABS.M_WPAbstract ) END;
  (*$SOM- *)


PROCEDURE M_WPShredderNewClass
(
  majorVersion : INTEGER4;
  minorVersion : INTEGER4
)              : PSOMClass;

END WPSHRED.
