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
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
#define LIMA_ANALYSISHANDLERS_EXPORT
abstract handler for XML processing : just inherits from different handlers
Manipulation de media ; separation du contenu et de la structure.
NAUTITIA.