source: branches/profile/XML_IMPORT/IMP_TREE/sax2Handler.hxx

Last change on this file was 9522, checked in by westram, 11 years ago
  • explicit override destructors of classes derived from virtual base classes
    • skipped directories WINDOW and PROBE (should be done in branches gtk and ptsfix)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1#include <xercesc/sax2/DefaultHandler.hpp>
2#include <xercesc/framework/XMLFormatter.hpp>
3
4XERCES_GLIBCXX_NAMESPACE_USE
5
6class Sax2Handler : public DefaultHandler, private XMLFormatTarget
7{
8private:
9    XMLFormatter fFormatter;
10    const char *outFileName;
11    ofstream &out;
12
13public:
14    char *buffer;
15    Sax2Handler(const char* const encodingName, const XMLFormatter::UnRepFlags unRepFlags, ofstream &outFile);
16    ~Sax2Handler() OVERRIDE;
17
18    //  Implementations of the format target interface
19    // -----------------------------------------------------------------------
20    void writeChars(const XMLByte* const  toWrite );
21
22    void writeChars(const XMLByte* const toWrite, const unsigned int count,
23                    XMLFormatter* const  formatter);
24
25
26    //  Implementations of the SAX DocumentHandler interface
27    //--------------------------------------------------------------------------------
28    void startDocument();
29    void endDocument();
30
31    void startElement(const XMLCh* const uri,   const XMLCh* const localname,
32                      const XMLCh* const qname, const Attributes&  attributes);
33    void endElement (const XMLCh* const uri,    const XMLCh* const localname,
34                     const XMLCh* const qname);
35
36    void characters            (const XMLCh* const chars, const unsigned int length);
37    void ignorableWhitespace   (const XMLCh* const chars, const unsigned int length );
38    void processingInstruction (const XMLCh* const target, const XMLCh* const data );
39
40    //  Implementations of the SAX ErrorHandler interface
41    //--------------------------------------------------------------------------------
42    void warning    (const SAXParseException& exception);
43    void error      (const SAXParseException& exception);
44    void fatalError (const SAXParseException& exception);
45};
Note: See TracBrowser for help on using the repository browser.