LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
XmlBowDocumentHandler.h
Go to the documentation of this file.
1// Copyright : (c) 2010 by CEA
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6#ifndef XMLBOWDOCUMENTHANDLER_H
7#define XMLBOWDOCUMENTHANDLER_H
8
10#include <sstream>
12
13
14namespace Lima {
17{
18public:
19 XmlBowDocumentHandler(std::shared_ptr<const ShiftFrom> shiftFrom);
20
22
23 void handle ( const char* buf,int length ) override;
24
25 void startAnalysis() override;
26
27 // OLD : garde la version avec le props car hérite de AbstractTextualAnalysisHandler
29
31 void endDocument() override{ m_out->flush(); };
32
34 void endAnalysis() override {}
35
37 // TODO devrait s'appeler startHierarchyNode ?
38 void startNode ( const std::string& elementName, bool forIndexing ) override;
39
41 // TODO devrait s'appeler endHierarchyNode ?
42 void endNode ( const Lima::Common::Misc::GenericDocumentProperties& props ) override;
43
44 void setOut(std::ostream* out) override;
45
46 std::ostream* m_out;
47
48};
49
50}
51
52#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.
void startDocument(const Lima::Common::Misc::GenericDocumentProperties &props) override
notify the start of a new document, and give its properties
void endAnalysis() override
notify the end of an analysis content
void endDocument() override
called at the end of a document analysis
NAUTITIA.