17namespace LinguisticProcessing
34SimpleStreamHandlerPrivate::SimpleStreamHandlerPrivate():
38SimpleStreamHandlerPrivate::SimpleStreamHandlerPrivate(
const SimpleStreamHandlerPrivate& sshp):
45SimpleStreamHandlerPrivate::~SimpleStreamHandlerPrivate()
72 LDEBUG <<
"SimpleStreamHandler::endAnalysis";
73 if (m_d->m_out != 0) m_d->m_out->flush();
83 LDEBUG <<
"SimpleStreamHandler::handle";
85 if (m_d->m_out != 0) m_d->m_out->write(buf,length);
Defines a Factory to create Object of type Base.
#define SIMPLESTREAMHANDLER_CLASSID
defines callback interface
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 endNode(const Common::Misc::GenericDocumentProperties &props) override
notify the end of a hierarchyNode
void startNode(const std::string &elementName, bool forIndexing) override
notify the start of a new hierarchyNode
virtual ~SimpleStreamHandler()
void startDocument(const Common::Misc::GenericDocumentProperties &props) override
notify the start of a new document
void endDocument() override
notify the end of the document
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.
SimpleFactory< AbstractResource, SimpleStreamHandler > simpleStreamHandlerFactory(SIMPLESTREAMHANDLER_CLASSID)