Changeset 97 for trunk/src/engine.h


Ignore:
Timestamp:
Apr 10, 2008, 3:35:13 PM (12 years ago)
Author:
lindanl
Message:

External Subset and error messages and global entity table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine.h

    r94 r97  
    1313#include "byteplex.h"
    1414#include "bitlex.h"
    15 
     15#include "errcodes.h"
    1616#define min(x,y) ((x) <(y) ?(x) :(y) )
    1717/* A ParsingEngine is the principal class for parsing XML
     
    2121public:
    2222        ~Parser_Interface();
    23         static Parser_Interface * ParserFactory(char * filename);
     23        static Parser_Interface * ParserFactory(char * filename, bool is_external);
    2424        virtual void ParseContent() = 0;
    25         virtual void Parse_DocType() = 0;
     25        virtual void Parse_ExtSubsetDecl() = 0;
    2626        virtual void Parse_Prolog() = 0;
    2727        unsigned char * GetCodeUnitPtr(int pos);
     
    5151class ParsingEngine : public Parser_Interface {
    5252public:
    53         ParsingEngine(Model_Info * m, Byteplex * b);
     53        ParsingEngine(Model_Info * m, Byteplex * b, bool is_external);
    5454        ~ParsingEngine();
    5555        void ParseContent();
     
    7979        /* Parsing routines. */
    8080
     81        void WF_Error (XML_Error errCode);
     82        void Validity_Error (XML_Error errCode);
     83        void Syntax_Error (XML_NonTerminal errNT);
     84       
    8185        void Parse_Markup ();
    8286        void Parse_Comment ();
     
    107111       
    108112        void Parse_Prolog();
     113               
     114        /*Parsing routine for external entities*/
     115        void Parse_ExtSubsetDecl ();
    109116       
    110117        /* Action routine for document start. */
     
    176183       
    177184        void Prolog_action(unsigned char * item, int lgth);
     185       
     186        void ExtSubsetDecl_action(unsigned char * item, int lgth);
    178187};
    179188
Note: See TracChangeset for help on using the changeset viewer.