home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Snippets / QD3D Juggler / Juggler Sources / CQD3DErrorsDoc.h < prev    next >
Encoding:
Text File  |  1995-12-27  |  752 b   |  31 lines  |  [TEXT/CWIE]

  1. //
  2. //    CQD3DErrorsDoc.h
  3. //
  4. //    class CQD3DErrorsDoc
  5. //    Send QuickDraw 3D errors to a TextEdit window.
  6. //
  7. //    by James Jennings
  8. //    November 23, 1995
  9. //
  10.  
  11. #pragma once
  12.  
  13. #include <LSingleDoc.h>
  14.  
  15. class CQD3DErrorsDoc : LSingleDoc {
  16. public:
  17.                 CQD3DErrorsDoc();
  18.     virtual        ~CQD3DErrorsDoc();
  19.     
  20.     static CQD3DErrorsDoc *GetInstance() { return singleton; }
  21.     
  22. protected:
  23.             Boolean    Common(StringPtr type, long first, long last);
  24.     TEHandle    mTE;    // the TERecord we stuff things into
  25. private:
  26.     static CQD3DErrorsDoc *singleton;
  27.     static void ErrorMethod(  TQ3Error first,   TQ3Error last,   long reference);
  28.     static void WarningMethod(TQ3Warning first, TQ3Warning last, long reference);
  29.     static void NoticeMethod( TQ3Notice first,  TQ3Notice last,  long reference);
  30. };
  31.