00001 /*----------------------------------------------------------------------------- 00002 Name: I_Parser.h 00003 Project: xmlBlaster.org 00004 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file 00005 Comment: The abstraction parser for xml literals 00006 -----------------------------------------------------------------------------*/ 00007 00008 #ifndef _UTIL_PARSER_I_PARSER_H 00009 #define _UTIL_PARSER_I_PARSER_H 00010 00011 #include <util/xmlBlasterDef.h> 00012 #include <util/parser/XmlHandlerBase.h> 00013 00014 00015 namespace org { namespace xmlBlaster { namespace util { namespace parser { 00016 00021 class Dll_Export I_Parser { 00022 00023 protected: 00024 00025 XmlHandlerBase *handler_; 00026 00027 I_Parser(XmlHandlerBase *handler) 00028 { 00029 handler_ = handler; 00030 } 00031 00032 public: 00033 virtual ~I_Parser() {} 00034 00039 virtual void parse(const std::string &xmlData) = 0; 00040 00041 }; 00042 }}}} // namespace 00043 00044 #endif