LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
CompactFullDocumentHandler.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_COMPACTFULLDOCUMENTHANDLER_H
11
#define LIMA_LINGUISTICPROCESSING_COMPACTFULLDOCUMENTHANDLER_H
12
13
#include "
AnalysisHandlersExport.h
"
14
#include "
linguisticProcessing/client/AnalysisHandlers/AbstractTextualAnalysisHandler.h
"
15
#include "
common/Data/genericDocumentProperties.h
"
16
17
#include <ostream>
18
19
namespace
Lima
20
{
21
22
namespace
LinguisticProcessing
23
{
24
28
class
LIMA_ANALYSISHANDLERS_EXPORT
CompactFullDocumentHandler
:
public
AbstractTextualAnalysisHandler
29
{
30
Q_OBJECT
31
public
:
32
CompactFullDocumentHandler
(std::ostream* out);
33
34
virtual
~CompactFullDocumentHandler
();
35
37
void
startDocument(
const
Common::Misc::GenericDocumentProperties
& props)
override
;
38
40
void
endDocument()
override
;
41
42
void
endAnalysis()
override
;
43
44
void
startAnalysis()
override
;
45
47
void
handle(
const
char
* buf,
int
length)
override
;
48
50
void
startNode
(
const
std::string& elementName,
bool
forIndexing )
override
{
LIMA_UNUSED
(elementName);
LIMA_UNUSED
(forIndexing);}
51
53
void
endNode
(
const
Common::Misc::GenericDocumentProperties
& props )
override
{
LIMA_UNUSED
(props);}
54
55
56
private
:
57
std::ostream* m_out;
58
59
};
60
61
}
// closing namespace LinguisticProcessing
62
63
}
// closing namespace Lima
64
65
#endif
// LIMA_LINGUISTICPROCESSING_COMPACTFULLDOCUMENTHANDLER_H
AbstractTextualAnalysisHandler.h
AnalysisHandlersExport.h
LIMA_ANALYSISHANDLERS_EXPORT
#define LIMA_ANALYSISHANDLERS_EXPORT
Definition
AnalysisHandlersExport.h:27
LIMA_UNUSED
#define LIMA_UNUSED(x)
Definition
LimaCommon.h:224
Lima::AbstractTextualAnalysisHandler
defines callback interface
Definition
AbstractTextualAnalysisHandler.h:31
Lima::Common::Misc::GenericDocumentProperties
Definition
genericDocumentProperties.h:58
Lima::LinguisticProcessing::CompactFullDocumentHandler
Definition
CompactFullDocumentHandler.h:29
Lima::LinguisticProcessing::CompactFullDocumentHandler::endNode
void endNode(const Common::Misc::GenericDocumentProperties &props) override
notify the end of a hierarchyNode
Definition
CompactFullDocumentHandler.h:53
Lima::LinguisticProcessing::CompactFullDocumentHandler::startNode
void startNode(const std::string &elementName, bool forIndexing) override
notify the start of a new hierarchyNode
Definition
CompactFullDocumentHandler.h:50
genericDocumentProperties.h
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_linguisticprocessing
src
linguisticProcessing
client
AnalysisHandlers
CompactFullDocumentHandler.h
Generated by
1.9.8