filters
Parser.h00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef PARSER_H
00010 #define PARSER_H
00011
00012 #include <aconf.h>
00013
00014 #ifdef USE_GCC_PRAGMAS
00015 #pragma interface
00016 #endif
00017
00018 #include "Lexer.h"
00019
00020
00021
00022
00023
00024 class Parser {
00025 public:
00026
00027
00028 Parser(XRef *xrefA, Lexer *lexerA);
00029
00030
00031 ~Parser();
00032
00033
00034 #ifndef NO_DECRYPTION
00035 Object *getObj(Object *obj,
00036 Guchar *fileKey = NULL, int keyLength = 0,
00037 int objNum = 0, int objGen = 0);
00038 #else
00039 Object *getObj(Object *obj);
00040 #endif
00041
00042
00043 Stream *getStream() { return lexer->getStream(); }
00044
00045
00046 int getPos() { return lexer->getPos(); }
00047
00048 private:
00049
00050 XRef *xref;
00051 Lexer *lexer;
00052 Object buf1, buf2;
00053 int inlineImg;
00054
00055 Stream *makeStream(Object *dict);
00056 void shift();
00057 };
00058
00059 #endif
00060
|