Isis 3 Programmer Reference
IsisXMLHelper.h
Go to the documentation of this file.
1 
24 #ifndef IsisXMLHelper_h
25 #define IsisXMLHelper_h
26 
27 //#include <sax2/DefaultHandler.hpp>
28 
29 #include "IsisAmlData.h"
30 #include "IsisXMLIgnore.h"
31 #include "IsisXMLHandler.h"
32 
38 class IsisXMLHelper : public IsisXMLHandler {
39 
40  public:
41 
42  ContentHandler *prevDocHandler;
43  ErrorHandler *prevErrorHandler;
44 
45 
46  IsisXMLHelper(char *PencodingName,
47  bool &PexpandNamespaces,
48  XERCES::SAX2XMLReader* &Pparser,
49  IsisHelperData *Helper);
50 
51  ~IsisXMLHelper();
52 
53  void endElement(const XMLCh *const uri,
54  const XMLCh *const localname,
55  const XMLCh *const qname);
56 
57  void characters(const XMLCh *const chars,
58  const XMLSize_t length);
59 
60  void startElement(const XMLCh *const uri,
61  const XMLCh *const localname,
62  const XMLCh *const qname,
63  const XERCES::Attributes &attributes);
64 
65 
66  private:
67 
68  // Saved argument from the constructor
69  char *encodingName;
70  bool expandNamespaces;
71  XERCES::SAX2XMLReader *parser;
72  IsisHelperData *helper;
73 
74  // Handler this handler knows how to create
75  IsisXMLHandler *generalHandler;
76  IsisXMLIgnore *ignoreHandler;
77 };
78 
79 
80 #endif
81