LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
XmlSimpleStreamHandler.h
Go to the documentation of this file.
1
// Copyright 2004-2021 CEA LIST
2
// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3
//
4
// SPDX-License-Identifier: MIT
5
6
#ifndef LIMA_XMLSIMPLESTREAMHANDLER_H
7
#define LIMA_XMLSIMPLESTREAMHANDLER_H
8
9
#include "
AnalysisHandlersExport.h
"
10
#include "
linguisticProcessing/client/AnalysisHandlers/SimpleStreamHandler.h
"
11
#include "
common/Handler/AbstractXmlDocumentHandler.h
"
12
#include <ostream>
13
14
namespace
Lima
{
16
class
LIMA_ANALYSISHANDLERS_EXPORT
XmlSimpleStreamHandler
:
17
public
Lima::LinguisticProcessing::SimpleStreamHandler
,
18
public
Lima::AbstractXmlDocumentHandler
19
{
20
public
:
21
22
XmlSimpleStreamHandler
(std::shared_ptr<const ShiftFrom> shiftFrom);
23
~XmlSimpleStreamHandler
();
24
26
void
startDocument(
const
Lima::Common::Misc::GenericDocumentProperties
& props)
override
;
27
29
void
endDocument()
override
;
30
31
void
endAnalysis()
override
;
32
33
void
startAnalysis()
override
;
34
36
void
handle(
const
char
* buf,
int
length)
override
;
37
39
void
startNode(
const
std::string& elementName,
bool
forIndexing )
override
;
40
42
void
endNode(
const
Lima::Common::Misc::GenericDocumentProperties
& props )
override
;
43
44
void
setOut(std::ostream* out)
override
;
45
};
46
47
}
48
49
#endif
AbstractXmlDocumentHandler.h
AnalysisHandlersExport.h
LIMA_ANALYSISHANDLERS_EXPORT
#define LIMA_ANALYSISHANDLERS_EXPORT
Definition
AnalysisHandlersExport.h:27
SimpleStreamHandler.h
Lima::AbstractXmlDocumentHandler
abstract handler for XML processing : just inherits from different handlers
Definition
AbstractXmlDocumentHandler.h:37
Lima::Common::Misc::GenericDocumentProperties
Definition
genericDocumentProperties.h:58
Lima::LinguisticProcessing::SimpleStreamHandler
Definition
SimpleStreamHandler.h:34
Lima::XmlSimpleStreamHandler
Manipulation de media ; separation du contenu et de la structure.
Definition
XmlSimpleStreamHandler.h:19
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_linguisticprocessing
src
linguisticProcessing
client
AnalysisHandlers
XmlSimpleStreamHandler.h
Generated by
1.9.8