00001
00002
00003 #ifndef MiX_SAX_EVENTHANDLER_H_
00004 #define MiX_SAX_EVENTHANDLER_H_
00005
00006 #include "classes.h"
00007 #include "misc.h"
00008 #include "Tokenizer.h"
00009
00010 #include "XMLString.h"
00011 #include "AttrMap.h"
00012
00013 namespace MiX{
00014
00015 template <class charT,class char_traits,class xml_traits>
00016 class SAX_EventHandler{
00017 public:
00018 MiX_Template_Typedef(charT,char_traits,xml_traits);
00024 virtual void onXMLDeclaration(attrmap_type attr){ }
00031 virtual void onStart(string_type name,attrmap_type attr){ }
00038 virtual void onEnd(string_type name){ }
00044 virtual void onText(string_type text){ }
00050 virtual void onComment(string_type text) { }
00058 virtual bool onException(ParsingException e) { throw e; }
00059 };
00060 }
00061
00062 #endif