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
13
#include "
AnalysisHandlersExport.h
"
14
#include "
linguisticProcessing/client/AnalysisHandlers/AbstractTextualAnalysisHandler.h
"
15
16
#include <ostream>
17
18
namespace
Lima
19
{
20
namespace
Common {
21
namespace
Misc {
22
class
GenericDocumentProperties;
23
}
24
}
25
namespace
LinguisticProcessing
26
{
27
#define SIMPLESTREAMHANDLER_CLASSID "SimpleStreamHandler"
28
29
class
SimpleStreamHandlerPrivate;
33
class
LIMA_ANALYSISHANDLERS_EXPORT
SimpleStreamHandler
:
public
AbstractTextualAnalysisHandler
34
{
35
Q_OBJECT
36
public
:
37
SimpleStreamHandler
();
38
39
virtual
~SimpleStreamHandler
();
40
42
void
startDocument(
const
Common::Misc::GenericDocumentProperties
& props)
override
;
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
62
private
:
63
SimpleStreamHandler
(
const
SimpleStreamHandler
& ssh);
64
SimpleStreamHandler
& operator=(
const
SimpleStreamHandler
& ssh);
65
SimpleStreamHandlerPrivate
* m_d;
66
};
67
68
}
// closing namespace LinguisticProcessing
69
70
}
// closing namespace Lima
71
72
#endif
// LIMA_LINGUISTICPROCESSING_SIMPLESTREAMHANDLER_H
AbstractTextualAnalysisHandler.h
AnalysisHandlersExport.h
LIMA_ANALYSISHANDLERS_EXPORT
#define LIMA_ANALYSISHANDLERS_EXPORT
Definition
AnalysisHandlersExport.h:27
Lima::AbstractTextualAnalysisHandler
defines callback interface
Definition
AbstractTextualAnalysisHandler.h:31
Lima::Common::Misc::GenericDocumentProperties
Definition
genericDocumentProperties.h:58
Lima::LinguisticProcessing::SimpleStreamHandlerPrivate
Definition
SimpleStreamHandler.cpp:22
Lima::LinguisticProcessing::SimpleStreamHandler
Definition
SimpleStreamHandler.h:34
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_linguisticprocessing
src
linguisticProcessing
client
AnalysisHandlers
SimpleStreamHandler.h
Generated by
1.9.8