6#ifndef ABSTRACTXMLANALYSISHANDLER_H
7#define ABSTRACTXMLANALYSISHANDLER_H
40 virtual void handle(
const char* buf,
int length)
override = 0;
43 virtual void startNode(
const std::string& elementName,
bool forIndexing ) = 0;
49 virtual void setOut( std::ostream* out ) = 0;
51 std::shared_ptr<const ShiftFrom>
shiftFrom()
const {
return m_shiftFrom;}
54 std::shared_ptr<const ShiftFrom> m_shiftFrom;
The AbstractAnalysisHandler class defines the callback interface: the functions that are to be define...
The AbstractAnalysisHandler class defines the callback interface: the functions that are to be define...
virtual ~AbstractXmlAnalysisHandler()
AbstractXmlAnalysisHandler(std::shared_ptr< const ShiftFrom > shiftFrom)
std::shared_ptr< const ShiftFrom > shiftFrom() const
virtual void endDocument()=0
notify the end of the document
virtual void startDocument(const Common::Misc::GenericDocumentProperties &props)=0
notify the start of a new document, and give its properties
virtual void startNode(const std::string &elementName, bool forIndexing)=0
notify the start of a new hierarchyNode
virtual void setOut(std::ostream *out)=0
set the output stream.
virtual void handle(const char *buf, int length) override=0
gives content.
virtual void endNode(const Common::Misc::GenericDocumentProperties &props)=0
notify the end of a hierarchyNode