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