IBR-DTNSuite  0.8
ibrcommon/ibrcommon/xml/XMLStreamHandler.h
Go to the documentation of this file.
00001 /*
00002  * XMLStreamHandler.h
00003  *
00004  *  Created on: 01.06.2011
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef XMLSTREAMHANDLER_H_
00009 #define XMLSTREAMHANDLER_H_
00010 
00011 #include <string>
00012 #include <map>
00013 
00014 namespace ibrcommon
00015 {
00016         class XMLStreamHandler
00017         {
00018         public:
00019                 virtual ~XMLStreamHandler() {};
00020                 virtual void startDocument() = 0;
00021                 virtual void endDocument() = 0;
00022                 virtual void startElement(const std::string &name, const std::map<std::string, std::string> &attr) = 0;
00023                 virtual void endElement(const std::string &name) = 0;
00024                 virtual void characters(const char *ch, int len) = 0;
00025         };
00026 }
00027 
00028 #endif /* XMLSTREAMHANDLER_H_ */