1 /* 2 3 DCONTEXT.HPP 4 5 Created 14/1/98 by DHM: 6 7 Dump-contexts for use by debugging routines. 8 9 The idea is that debug-dump routines take a reference 10 to one of these, signifying how they should output; 11 these are in separate headers to avoid dependencies. 12 13 There are derived classes for the screen and for log files. 14 15 Analagous to the class CDumpContext in Microsoft's MFC. 16 17 */ 18 19 #ifndef _dcontext 20 #define _dcontext 1 21 22 #if defined( _MSC_VER ) 23 #pragma once 24 #endif 25 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 30 /* Version settings *****************************************************/ 31 32 /* Constants ***********************************************************/ 33 34 /* Macros ***************************************************************/ 35 36 /* Type definitions *****************************************************/ 37 class R_DumpContext 38 { 39 public: 40 virtual int dputs(char const * const buf) = 0; 41 virtual int dprintf(char const * format, ... ) = 0; 42 virtual int vdprintf(char const * format, va_list ap ) = 0; 43 }; 44 45 /* Exported globals *****************************************************/ 46 47 /* Function prototypes **************************************************/ 48 49 50 51 /* End of the header ****************************************************/ 52 53 54 #ifdef __cplusplus 55 }; 56 #endif 57 58 #endif 59 60 61