Changeset 100 for trunk/src/engine.h


Ignore:
Timestamp:
Apr 14, 2008, 6:34:30 PM (12 years ago)
Author:
lindanl
Message:

Parsers for internal and external entities.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine.h

    r99 r100  
    2121public:
    2222        ~Parser_Interface();
    23         static Parser_Interface * ParserFactory(char * filename, bool is_external);
     23        static Parser_Interface * ParserFactory(char * filename);
     24        static Parser_Interface * ParserFactory(char * filename, Model_Info * m);
    2425        // Constructor for a subsidiary parser for internal entities.
    25         static Parser_Interface * ParserFactory(unsigned char * byte_buffer, int byte_count, Model_Info * m);
     26        static Parser_Interface * ParserFactory(char * byte_buffer, int byte_count, Entity_Info * e, Model_Info * m);
    2627        virtual void ParseContent() = 0;
    2728        virtual void Parse_ExtSubsetDecl() = 0;
     
    3435        unsigned char * get_Encoding();
    3536        Model_Info * model_info;
     37        Entity_Info * entity_Info;
    3638protected:
    3739        /* Co-classes */
     
    5355class ParsingEngine : public Parser_Interface {
    5456public:
    55         ParsingEngine(Model_Info * m, Byteplex * b, bool is_external);
     57        ParsingEngine(Entity_Info * e, Model_Info * m, Byteplex * b, bool is_external);
    5658        ~ParsingEngine();
    5759        void ParseContent();
     
    111113        void requireWS ();
    112114        void Parse_AttValue ();
    113        
     115        void Parse_GEntityValue(GEntity_info * this_info);
     116        void Parse_PEntityValue(PEntity_info * this_info);
     117        char * Replace_EntityRef(bool& is_simple);
     118        char * Replace_CharRef();
    114119        void Parse_Prolog();
    115120               
Note: See TracChangeset for help on using the changeset viewer.