1 /*-----------------------------------------------------------------------------
 2 Name:      I_Parser.h
 3 Project:   xmlBlaster.org
 4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
 5 Comment:   The abstraction parser for xml literals
 6 -----------------------------------------------------------------------------*/
 7 
 8 #ifndef _UTIL_PARSER_I_PARSER_H
 9 #define _UTIL_PARSER_I_PARSER_H
10 
11 #include <util/xmlBlasterDef.h>
12 #include <util/parser/XmlHandlerBase.h>
13 
14 
15 namespace org { namespace xmlBlaster { namespace util { namespace parser {
16     
17 /**
18  * Abstraction for the xml handling<p />
19  * You may use this as the interface to extend in your specific XML handling (example SAX2).
20  */
21 class Dll_Export I_Parser {
22 
23 protected:
24    
25    XmlHandlerBase *handler_;
26 
27    I_Parser(XmlHandlerBase *handler)
28    {
29       handler_ = handler;
30    }
31 
32 public:
33    virtual ~I_Parser() {}
34 
35    /**
36     * Does the actual parsing
37     * @param xmlData Quality of service in XML notation
38     */
39    virtual void parse(const std::string &xmlData) = 0;
40 
41    };
42 }}}} // namespace
43 
44 #endif


syntax highlighted by Code2HTML, v. 0.9.1