1 ////////////////////////////////////////////////////////////////////////////// 2 // File: crashprint.h 3 // Purpose: wxCrashPrint class 4 // Maintainer: Wyo 5 // Created: 2004-09-28 6 // RCS-ID: $Id: crashprint.h,v 1.5 2004-11-22 18:27:11 wyo Exp $ 7 // Copyright: (c) 2004 wxCode 8 // Licence: wxWindows 9 ////////////////////////////////////////////////////////////////////////////// 10 11 #ifndef _WX_CRASHPRINT_H_ 12 #define _WX_CRASHPRINT_H_ 13 14 //#ifdef __GNUG__ 15 // #pragma implementation "crashprint.h" 16 //#endif 17 18 //---------------------------------------------------------------------------- 19 // information 20 //---------------------------------------------------------------------------- 21 22 23 //---------------------------------------------------------------------------- 24 // headers 25 //---------------------------------------------------------------------------- 26 //! wxWidgets headers 27 28 29 //============================================================================ 30 // declarations 31 //============================================================================ 32 const int maxBtCount = 100; 33 34 35 //---------------------------------------------------------------------------- 36 //! 37 38 39 //---------------------------------------------------------------------------- 40 //! wxCrashPrint 41 class wxCrashPrint { 42 43 public: 44 45 //! constructor 46 wxCrashPrint (int flags = 0, const wxString &fname = wxEmptyString); 47 48 //! destructor ~wxCrashPrint()49 ~wxCrashPrint () {}; 50 51 // format and print report 52 void Report (); 53 54 private: 55 56 //! variables 57 int m_flags; 58 wxString m_fname; 59 60 void *m_btBuffer [maxBtCount]; 61 char **m_btStrings; 62 63 }; 64 65 #endif // _WX_CRASHPRINT_H_ 66