-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilecharsource.h
More file actions
executable file
·35 lines (32 loc) · 881 Bytes
/
filecharsource.h
File metadata and controls
executable file
·35 lines (32 loc) · 881 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
26
27
28
29
30
31
32
33
34
/*Copyright 2001
*
* filecharsource.h
*
* Author: Gregory Ford greg@reddfish.co.nz
* RTF token parser based on:
* rtf2html by Dmitry Porapov <dpotapov@capitalsoft.com>,
* 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 dubois@primate.wisc.edu
*
* Copying permitted under GNU licence (see COPYING)
*/
// filecharsource.h: interface for the FileCharSource class.
//
//////////////////////////////////////////////////////////////////////
class FileCharSource : public CharSource
{
public:
FileCharSource();
FileCharSource( char * filename );
FileCharSource( FILE * fileHandle );
virtual ~FileCharSource();
char unGetChar(char ch);
char getChar();
bool endOfInput();
private:
FILE * f;
};