Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

PSTokenizer.h

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

Generated on Wed Nov 3 12:59:02 2004 for Lemur Toolkit by doxygen1.2.18