LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
XmlSimpleStreamHandler.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
2//
3// SPDX-License-Identifier: MIT
4
6
7using namespace Lima;
8using namespace Lima::LinguisticProcessing;
9
10namespace Lima {
11
12XmlSimpleStreamHandler::XmlSimpleStreamHandler(std::shared_ptr<const ShiftFrom> shiftFrom):
15{}
16
19
24
29
33
37
39void XmlSimpleStreamHandler::handle(const char* buf,int length) {
41}
42
44void XmlSimpleStreamHandler::startNode( const std::string& elementName, bool forIndexing ) {
45 SimpleStreamHandler::startNode(elementName,forIndexing);
46}
47
52
53void XmlSimpleStreamHandler::setOut(std::ostream* out) {
55}
56
57} // namespace Lima
abstract handler for XML processing : just inherits from different handlers
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.
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.