-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharoutput.h
executable file
·45 lines (38 loc) · 975 Bytes
/
charoutput.h
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
/*Copyright 2001
*
* charoutput.h
*
* Author: Gregory Ford [email protected]
* RTF token parser based on:
* rtf2html by Dmitry Porapov <[email protected]>,
* based on earlier work of Chuck Shotton.
* distributed under BSD-style license
* RTF token lists and hashing algorithm based on
* RTF Tools, Release 1.10
* 6 April 1994
* Paul DuBois [email protected]
*
* Copying permitted under GNU licence (see COPYING)
*/
// charoutput.h: interface for the CharOutput class.
//
//////////////////////////////////////////////////////////////////////
class CharOutput
{
public:
virtual void putChar( char c );
virtual int putString( string str);
CharOutput();
virtual ~CharOutput();
};
class FileCharOutput : public CharOutput
{
public:
int putString( string str);
void putChar( char c );
FileCharOutput( const char *filename );
//FileCharOutput();
virtual ~FileCharOutput();
private:
FILE * fh;
};