Isis 3 Programmer Reference
IsisXMLHelpers.h
Go to the documentation of this file.
1 
25 #ifndef IsisXMLHelpers_h
26 #define IsisXMLHelpers_h
27 
28 //#include <sax2/DefaultHandler.hpp>
29 
30 #include "IsisAmlData.h"
31 #include "IsisXMLHelper.h"
32 #include "IsisXMLIgnore.h"
39 
40  public:
41 
42  ContentHandler *prevDocHandler;
43  ErrorHandler *prevErrorHandler;
44 
45 
46  IsisXMLHelpers(char *PencodingName,
47  bool &PexpandNamespaces,
48  XERCES::SAX2XMLReader* &Pparser,
49  std::vector<IsisHelperData> *Phelpers);
50 
51  ~IsisXMLHelpers();
52 
53 // void endDocument();
54 
55  void endElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname);
56 
57  void characters(const XMLCh *const chars, const XMLSize_t length);
58 
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 arguments from constructor
69  char *encodingName;
70  bool expandNamespaces;
71  XERCES::SAX2XMLReader *parser;
72  std::vector<IsisHelperData> *helpers;
73 
74  // Handlers this handler knows how to create
75  IsisXMLHelper *helperHandler;
76  IsisXMLIgnore *ignoreHandler;
77 
78 };
79 
80 
81 #endif