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
12#include <ostream>
13
14namespace Lima {
19{
20public:
21
22 XmlSimpleStreamHandler(std::shared_ptr<const ShiftFrom> shiftFrom);
24
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
#define LIMA_ANALYSISHANDLERS_EXPORT
std::shared_ptr< const ShiftFrom > shiftFrom() const
abstract handler for XML processing : just inherits from different handlers
void setOut(std::ostream *out) override
set the output stream.
void endNode(const Lima::Common::Misc::GenericDocumentProperties &props) override
notify the end of a hierarchyNode
void endAnalysis() override
function called by the LIMA analyzer on the end of a text part that is to be analyzed
void startAnalysis() override
function called by the LIMA analyzer on start of a new document
void startDocument(const Lima::Common::Misc::GenericDocumentProperties &props) override
notify the start of a new document
XmlSimpleStreamHandler(std::shared_ptr< const ShiftFrom > shiftFrom)
void handle(const char *buf, int length) override
gives content.
void startNode(const std::string &elementName, bool forIndexing) override
notify the start of a new hierarchyNode
void endDocument() override
notify the end of the document
NAUTITIA.