00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __PEEKABOT_XML_HANDLER_HH
00019 #define __PEEKABOT_XML_HANDLER_HH
00020
00021 #include <string>
00022 #include <map>
00023
00024 namespace peekabot
00025 {
00035 class XMLHandler
00036 {
00037 public:
00040 typedef std::map<std::string, std::string> AttributeMap;
00041
00042 virtual ~XMLHandler() {}
00043
00049 virtual void on_start_element(const std::string & tag_name,
00050 AttributeMap & attributes)
00051 throw(std::exception) {}
00052
00058 virtual void on_end_element(const std::string & tag_name)
00059 throw(std::exception) {}
00060
00066 virtual void on_cdata(const std::string & cdata)
00067 throw(std::exception) {}
00068
00071 virtual void on_start_document() throw(std::exception) {}
00072
00075 virtual void on_end_document() throw(std::exception) {}
00076
00079 virtual void on_failure() throw(std::exception) {}
00080 };
00081
00082 }
00083
00084 #endif //__PEEKABOT_XML_HANDLER_HH