30 #ifndef __NCML_MODULE__SAX_PARSER_WRAPPER_H__
31 #define __NCML_MODULE__SAX_PARSER_WRAPPER_H__
34 #include <libxml/parserInternals.h>
73 enum ParserState { NOT_PARSING=0, PARSING, EXCEPTION, NUM_STATES};
85 xmlSAXHandler _handler;
90 xmlParserCtxtPtr _context;
125 bool parse(
const string& ncmlFilename);
140 void deferException(
BESError& theErr);
151 void rethrowException();
156 int getCurrentParseLine()
const;
161 void setupParser(
const string& filename);
164 void cleanupParser() throw ();
bool isExceptionState() const
Used by the callbacks to know whether we have a deferred exception.
SaxParser & getParser() const
An abstract superclass for NCMLArray that handles the non-parameterized functionality and allows u...
Wrapper for libxml SAX parser C callbacks into C++.
Abstract exception class for the BES with basic string message.
Interface class for the wrapper between libxml C SAX parser and our NCMLParser.