21namespace LinguisticProcessing
24namespace EventAnalysis
40 if (m_writer != 0)
delete m_writer;
41 if (m_stream != 0)
delete m_stream;
65 LDEBUG <<
"EventHandler::endAnalysis()";
67 istringstream in(m_stream->str());
68 LDEBUG <<
"EventHandler::endAnalysis(): m_stream->str= " << m_stream->str();
75 LDEBUG <<
"EventHandler::startAnalysis()";
77 LDEBUG <<
"EventHandler::startAnalysis(): delete m_writer";
82 LDEBUG <<
"EventHandler::startAnalysis(): delete m_stream";
86 m_stream=
new ostringstream();
88 m_writer->
setOut(m_stream);
89 LDEBUG <<
"EventHandler::startAnalysis(): m_stream->StartAnalysis()...";
97 LDEBUG <<
"EventHandler::handle( buff, " << length <<
")";
98 m_writer->
handle(buf,length);
defines callback interface
void endNode(const Common::Misc::GenericDocumentProperties &props) override
notify the end of a hierarchyNode
void startAnalysis() override
function called by the LIMA analyzer on start of a new document
void handle(const char *buf, int length) override
gives content.
void startNode(const std::string &elementName, bool forIndexing) override
notify the start of a new hierarchyNode
void startDocument(const Common::Misc::GenericDocumentProperties &props) override
notify the start of a new document
void endAnalysis() override
function called by the LIMA analyzer on the end of a text part that is to be analyzed
virtual void setOut(std::ostream *out) override
set the output stream.
void endDocument() override
notify the end of the document
virtual void read(std::istream &file)
void startAnalysis() override
function called by the LIMA analyzer on start of a new document
void setOut(std::ostream *out) override
set the output stream.
void endAnalysis() override
function called by the LIMA analyzer on the end of a text part that is to be analyzed
void handle(const char *buf, int length) override
gives content.