We need to get a notification from the SaxParser, to be able to add authentication to our current changeSet parsing. To avoid having to read the whole changeset into memory, we want to run the work in parallell a chunk at the time.
To accomplish this we would need a notification from the ParseEngine.
I'm thinking about adding a SaxParser::setParserObserver(ParserObserver* observer)
after every call to XML_Parse in ParseEgine the observer should be notified.
Do you like the feel of it, or would you suggest a different approach?
//A parsed length of zero indicates parsing finished.
virtual OnParsed(const char* pBuffer,std::streamsize parsedLength) = 0