-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdumpchan.h
More file actions
25 lines (20 loc) · 758 Bytes
/
dumpchan.h
File metadata and controls
25 lines (20 loc) · 758 Bytes
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
#ifndef __DUMPCHAN__H
#define __DUMPCHAN__H
#include <stdio.h>
#include <stdint.h>
//==============================================================================
class DumpChan
// DumpChan is a base class of the digraph, and intended to be the base of all
// the classes stored in it. This is so that the pretty-printer can find an
// output stream. G.DumpChan() sets the static channel value, and the static
// callbacks in the stored classes pick it up, and write to it when G.Dump()
// is called.
{
public:
DumpChan(){}
virtual ~ DumpChan(){}
void Dump(FILE * = stdout);
static FILE * dfp; // Dumpfile channel
};
//==============================================================================
#endif