Isis 3 Developer 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 
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 
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const XERCES::Attributes &attributes)
Definition: IsisXMLHelper.cpp:80
Definition: IsisAmlData.h:54
~IsisXMLHelper()
Definition: IsisXMLHelper.cpp:61
IsisXMLHelper(char *PencodingName, bool &PexpandNamespaces, XERCES::SAX2XMLReader *&Pparser, IsisHelperData *Helper)
Definition: IsisXMLHelper.cpp:41
ContentHandler * prevDocHandler
Definition: IsisXMLHelper.h:42
void characters(const XMLCh *const chars, const XMLSize_t length)
Definition: IsisXMLHelper.cpp:68
ErrorHandler * prevErrorHandler
Definition: IsisXMLHelper.h:43
Definition: IsisXMLHelper.h:38
Definition: IsisXMLHandler.h:35
void endElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
Definition: IsisXMLHelper.cpp:73
Definition: IsisXMLIgnore.h:37