USGS

Isis 3.0 Developer's Reference (API)

Home

IsisXMLMultipleValues.h

Go to the documentation of this file.
00001 
00024 #ifndef IsisXMLMultipleValues_h
00025 #define IsisXMLMultipleValues_h
00026 
00027 //#include <sax2/DefaultHandler.hpp>
00028 
00029 #include "IsisAmlData.h"
00030 #include "IsisXMLHandler.h"
00031 #include "IsisXMLIgnore.h"
00037 class IsisXMLMultipleValues : public IsisXMLHandler {
00038 
00039   public:
00040 
00041     ContentHandler *prevDocHandler;
00042     ErrorHandler *prevErrorHandler;
00043 
00044 
00045     IsisXMLMultipleValues(char *PencodingName,
00046                           bool &PexpandNamespaces,
00047                           XERCES::SAX2XMLReader* &Pparser,
00048                           std::vector<QString> *PmultipleValues);
00049 
00050     ~IsisXMLMultipleValues();
00051 
00052 //  void endDocument();
00053 
00054 
00055     void endElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname);
00056 
00057     void characters(const XMLCh *const chars, const XMLSize_t length);
00058 
00059 
00060     void startElement(const XMLCh *const uri,
00061                       const XMLCh *const localname,
00062                       const XMLCh *const qname,
00063                       const XERCES::Attributes  &attributes);
00064 
00065 
00066   private:
00067 
00068     // Saved arguments from constructor
00069     char *encodingName;
00070     bool expandNamespaces;
00071     XERCES::SAX2XMLReader *parser;
00072     std::vector<QString> *multipleValues;
00073 
00074     // Handlers this handler knows how to create
00075     IsisXMLHandler *generalHandler;
00076     IsisXMLIgnore *ignoreHandler;
00077 
00078 };
00079 
00080 
00081 #endif
00082 
00083