home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / OTHERUTI / TCPP30-1.ZIP / CLASSINC.ZIP / CLSTYPES.H < prev    next >
C/C++ Source or Header  |  1992-02-18  |  2KB  |  95 lines

  1. /*------------------------------------------------------------------------*/
  2. /*                                                                        */
  3. /*  CLSTYPES.H                                                            */
  4. /*                                                                        */
  5. /*  Copyright Borland International 1991                                  */
  6. /*  All Rights Reserved                                                   */
  7. /*                                                                        */
  8. /*------------------------------------------------------------------------*/
  9.  
  10. #if !defined( __CLSTYPES_H )
  11. #define __CLSTYPES_H
  12.  
  13. #if !defined( ___DEFS_H )
  14. #include <_defs.h>
  15. #endif  // ___DEFS_H
  16.  
  17. #if !defined( __LIMITS_H )
  18. #include <limits.h>
  19. #endif
  20.  
  21. typedef unsigned int classType;
  22. typedef unsigned int hashValueType;
  23. typedef unsigned int sizeType;
  24.  
  25. _CLASSDEF(Object)
  26.  
  27. typedef void ( _FAR *iterFuncType )( class Object _FAR &, void _FAR * );
  28. typedef int ( _FAR *condFuncType )( const class Object _FAR &, void _FAR * );
  29. typedef int    countType;
  30.  
  31. enum
  32. {
  33.     objectClass,
  34.     errorClass,
  35.     sortableClass,
  36.     stringClass,
  37.     listElementClass,
  38.     doubleListElementClass,
  39.     containerClass,
  40.     stackClass,
  41.     queueClass,
  42.     dequeClass,
  43.     collectionClass,
  44.     hashTableClass,
  45.     bagClass,
  46.     setClass,
  47.     dictionaryClass,
  48.     associationClass,
  49.     arrayClass,
  50.     sortedArrayClass,
  51.     listClass,
  52.     doubleListClass,
  53.     timeClass,
  54.     dateClass,
  55.     btreeClass,
  56.     priorityQueueClass,
  57.     __firstOWLClass = 100,
  58.     __lastLibClass = 255,
  59.     __firstUserClass,
  60.     __lastClass = UINT_MAX
  61. };
  62.  
  63. enum ClassLib_errors
  64. {
  65.     __EfirstError, // don't remove
  66.     __EDELERROR,
  67.     __EEXPANDFS,
  68.     __EEXPANDLB,
  69.     __ENOMEM,
  70.     __ENOTSORT,
  71.     __ENOTASSOC,
  72.     __EORDER3,
  73.     __ENOMEMIA,
  74.     __ENOMEMLN,
  75.     __EPRBADCLASS,
  76.     __EPRINCONS,
  77.     __EBNZERODIV,
  78.     __EBNILLLOG,
  79.     __EBNNOMEM,
  80.     __ERANDOM2SMALL,
  81.     __EBNTEMPSTKOVFL,
  82.     __EBNTEMPSTKUNFL,
  83.     __EBN2MANYTEMPS,
  84.     __EBN2BIG2PRINT,
  85.     __EBNNOMEM4PRINT,
  86.     __EBNRESULT2BIG,
  87.     __ERNG2BIG,
  88.     __EBNSQRTILLEGAL,
  89.     __ElastError   // don't remove
  90. };
  91.  
  92. void ClassLib_error( ClassLib_errors, char _FAR *addstr = 0 );
  93.  
  94. #endif
  95.