LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
MultimediaDocumentHandler.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 MULTIMEDIADOCUMENTHANDLER_H
7#define MULTIMEDIADOCUMENTHANDLER_H
8
11
12#include <sstream>
13
14namespace Lima {
15namespace Handler {
16
21
24{
25public:
26 MultimediaDocumentHandler(std::shared_ptr<const ShiftFrom> shiftFrom);
27
29
30 void handle (const char* buf, int length) override;
31
32 void startAnalysis(const std::string& bloc_type) override;
33
34 void startAnalysis() override;
35
36 // OLD : garde la version avec le props car hérite de AbstractTextualAnalysisHandler
38
40 void endDocument() override{ m_out->flush(); };
41
43 void endAnalysis() override {}
44
46 // TODO devrait s'appeler startHierarchyNode ?
47 void startNode ( const std::string& elementName, bool forIndexing ) override;
48
50 // TODO devrait s'appeler endHierarchyNode ?
51 void endNode ( const Lima::Common::Misc::GenericDocumentProperties& props ) override;
52
53 void setOut(std::ostream* out) override;
54
55 std::ostream* m_out;
56
57private:
60};
61
62}
63}
64
65#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 endDocument() override
called at the end of a document analysis
void endAnalysis() override
notify the end of an analysis content
NAUTITIA.