25 std::cerr <<
"XmlSimpleHandler::setOut" << std::endl;
31 std::cerr <<
"XmlSimpleHandler::startDocument" << std::endl;
33 (*m_out) <<
"<DOCSET>" << endl;
38 std::cerr <<
"XmlSimpleHandler::endDocument" << std::endl;
39 (*m_out) <<
"</DOCSET>" << endl;
45 std::cerr <<
"XmlSimpleHandler::handle" << std::endl;
69 std::cerr <<
"XmlSimpleHandler::endNode" << std::endl;
80 std::replace( docId.begin(), docId.end(),
',',
'_');
83 <<
"<DOC id=\"" << docId <<
"\">" << endl
abstract handler for XML processing : just inherits from different handlers
std::pair< std::string, bool > getStringValue(std::string propName) const
void endDocument() override
called at the end of a document analysis
std::ostringstream m_buffer
void setOut(std::ostream *out) override
set the output stream.
std::vector< bool > m_indexingNodeStack
void startNode(const std::string &elementName, bool forIndexing) override
called by the document analyzer for a new hierarchy node
void startDocument(const Lima::Common::Misc::GenericDocumentProperties &props) override
notify the start of a new document, and give its properties
XmlSimpleHandler(std::shared_ptr< const ShiftFrom > shiftFrom)
void endNode(const Lima::Common::Misc::GenericDocumentProperties &props) override
called by the document analyzer at the end of a hierarchy node
void handle(const char *buf, int length) override
gives content.
void startAnalysis() override
function called by the LIMA analyzer on start of a new document