30 #ifndef __NCML_MODULE__SAX_PARSER_WRAPPER_H__ 31 #define __NCML_MODULE__SAX_PARSER_WRAPPER_H__ 34 #include <libxml/parserInternals.h> 72 NOT_PARSING = 0, PARSING, EXCEPTION, NUM_STATES
86 xmlSAXHandler _handler;
92 xmlParserCtxtPtr _context;
129 bool parse(
const string& ncmlFilename);
147 void deferException(
BESError& theErr);
154 return _state == EXCEPTION;
161 void rethrowException();
166 int getCurrentParseLine()
const;
171 void setupParser(
const string& filename);
176 void cleanupParser() throw ();
NcML Parser for adding/modifying/removing metadata (attributes) to existing local datasets using NcML...
Wrapper for libxml SAX parser C callbacks into C++.
Abstract exception class for the BES with basic string message.
bool isExceptionState() const
Interface class for the wrapper between libxml C SAX parser and our NCMLParser.