upgrade to xpdf 3.00.
[swftools.git] / pdf2swf / xpdf / PSTokenizer.h
blob4d5ee97f4ddd7fc1ba5c6531b5009a7be8e2e10f
1 //========================================================================
2 //
3 // PSTokenizer.h
4 //
5 // Copyright 2002-2003 Glyph & Cog, LLC
6 //
7 //========================================================================
9 #ifndef PSTOKENIZER_H
10 #define PSTOKENIZER_H
12 #include <aconf.h>
14 #ifdef USE_GCC_PRAGMAS
15 #pragma interface
16 #endif
18 #include "gtypes.h"
20 //------------------------------------------------------------------------
22 class PSTokenizer {
23 public:
25 PSTokenizer(int (*getCharFuncA)(void *), void *dataA);
26 ~PSTokenizer();
28 // Get the next PostScript token. Returns false at end-of-stream.
29 GBool getToken(char *buf, int size, int *length);
31 private:
33 int lookChar();
34 int getChar();
36 int (*getCharFunc)(void *);
37 void *data;
38 int charBuf;
41 #endif