Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PSTokenizer.h

Go to the documentation of this file.
00001 //========================================================================
00002 //
00003 // PSTokenizer.h
00004 //
00005 // Copyright 2002 Glyph & Cog, LLC
00006 //
00007 //========================================================================
00008 
00009 #ifndef PSTOKENIZER_H
00010 #define PSTOKENIZER_H
00011 
00012 #ifdef __GNUC__
00013 #pragma interface
00014 #endif
00015 
00016 #include "gtypes.h"
00017 
00018 //------------------------------------------------------------------------
00019 
00020 class PSTokenizer {
00021 public:
00022 
00023   PSTokenizer(int (*getCharFuncA)(void *), void *dataA);
00024   ~PSTokenizer();
00025 
00026   // Get the next PostScript token.  Returns false at end-of-stream.
00027   GBool getToken(char *buf, int size, int *length);
00028 
00029 private:
00030 
00031   int lookChar();
00032   int getChar();
00033 
00034   int (*getCharFunc)(void *);
00035   void *data;
00036   int charBuf;
00037 };
00038 
00039 #endif

Generated on Sat Nov 5 16:18:16 2005 for OPIE by  doxygen 1.4.2