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{
00021 template <class charT,class traitsT>
00022 class SAX_EventHandler{
00023 public:
00024 MiX_Template_Typedef(charT,traitsT);
00030 virtual void onXMLDeclaration(attrmap_type attr){}
00037 virtual void onStart(string_type name,attrmap_type attr){ };
00044 virtual void onEnd(string_type name){ };
00050 virtual void onText(string_type text){ };
00056 virtual void onComment(string_type text){ };
00064 virtual bool onException(ParsingException e);
00065 };
00066 }
00067
00068 #ifndef MIX_SAX_EVENTHANDLER_CPP_
00069 #include "SAX_EventHandler.cpp"
00070 #endif
00071
00072 #endif