LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SimpleStreamHandler.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/***************************************************************************
7 * Copyright (C) 2004-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10#ifndef LIMA_LINGUISTICPROCESSING_SIMPLESTREAMHANDLER_H
11#define LIMA_LINGUISTICPROCESSING_SIMPLESTREAMHANDLER_H
12
15
16#include <ostream>
17
18namespace Lima
19{
20namespace Common {
21 namespace Misc {
23 }
24}
26{
27#define SIMPLESTREAMHANDLER_CLASSID "SimpleStreamHandler"
28
29class SimpleStreamHandlerPrivate;
34{
35 Q_OBJECT
36public:
38
39 virtual ~SimpleStreamHandler();
40
43
45 void endDocument() override;
46
47 void endAnalysis() override;
48
49 void startAnalysis() override;
50
52 void handle(const char* buf,int length) override;
53
55 void startNode( const std::string& elementName, bool forIndexing ) override;
56
58 void endNode( const Common::Misc::GenericDocumentProperties& props ) override;
59
60 void setOut(std::ostream* out) override;
61
62private:
64 SimpleStreamHandler& operator=(const SimpleStreamHandler& ssh);
66};
67
68} // closing namespace LinguisticProcessing
69
70} // closing namespace Lima
71
72#endif // LIMA_LINGUISTICPROCESSING_SIMPLESTREAMHANDLER_H
#define LIMA_ANALYSISHANDLERS_EXPORT
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
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.
NAUTITIA.