home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dokpr1.zip / object.h < prev    next >
C/C++ Source or Header  |  1995-07-19  |  2KB  |  59 lines

  1. /**************************************************************************
  2.  *                                                                        *
  3.  *                                                                        *
  4.  *          This code is copyright (c) 1995                               *
  5.  *                     Athena Design, Inc.                                *
  6.  *                                                                        *
  7.  *                                                                        *
  8.  *                ALL RIGHTS RESERVED                                     *
  9.  *                                                                        *
  10.  *                                                                        *
  11.  *                                                                        *
  12.  *                                                                        *
  13.  *                                                                        *
  14.  **************************************************************************/
  15.  
  16. // this is the base class of all objects that have virtual tables in Mesa
  17. // This class will allow other classes and instances to query info about themselves
  18. // and also track the number of new's and delete's in a debug-mode
  19. // 95-01-15 dpp
  20.  
  21. #ifndef MH_object_to_this
  22. #define MH_object_to_this
  23.  
  24. // if this is defined, then we're in debug mode
  25. // #define MOBJECTDEBUGMODE
  26.  
  27. // #define ISSOM
  28.  
  29. #ifdef ISSOM
  30. // #include <som.hh>
  31.  
  32. pragma SomNoMangling(On);
  33. pragma Off(Case_insensitive_class_names);
  34. pragma Off(Use_override_signature);
  35. pragma Off(SOM_inline);
  36. pragma Off(Direct_attribute_access);
  37. pragma Offwarn(216);
  38.  
  39. class MObject : public SOMObject
  40. #else
  41. class MObject
  42. #endif
  43. {
  44.     public:
  45.     MObject();
  46.     MObject(const char *,int);
  47.     virtual ~MObject();
  48.  
  49.     private:
  50.     static count;
  51. };
  52.  
  53. #ifdef MOBJECTDEBUGMODE
  54. #define MObject() MObject(__FILE__,__LINE__)
  55. #endif
  56.  
  57. // #ifndef MH_object_to_this
  58. #endif
  59.