LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
CompactFullDocumentHandler.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/***************************************************************************
7 * Copyright (C) 2004-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10#ifndef LIMA_LINGUISTICPROCESSING_COMPACTFULLDOCUMENTHANDLER_H
11#define LIMA_LINGUISTICPROCESSING_COMPACTFULLDOCUMENTHANDLER_H
12
16
17#include <ostream>
18
19namespace Lima
20{
21
22namespace LinguisticProcessing
23{
24
29{
30 Q_OBJECT
31public:
32 CompactFullDocumentHandler(std::ostream* out);
33
35
37 void startDocument(const Common::Misc::GenericDocumentProperties& props) override;
38
40 void endDocument() override;
41
42 void endAnalysis() override;
43
44 void startAnalysis() override;
45
47 void handle(const char* buf,int length) override;
48
50 void startNode( const std::string& elementName, bool forIndexing ) override {LIMA_UNUSED(elementName); LIMA_UNUSED(forIndexing);}
51
53 void endNode( const Common::Misc::GenericDocumentProperties& props ) override {LIMA_UNUSED(props);}
54
55
56private:
57 std::ostream* m_out;
58
59};
60
61} // closing namespace LinguisticProcessing
62
63} // closing namespace Lima
64
65#endif // LIMA_LINGUISTICPROCESSING_COMPACTFULLDOCUMENTHANDLER_H
#define LIMA_ANALYSISHANDLERS_EXPORT
#define LIMA_UNUSED(x)
Definition LimaCommon.h:224
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
NAUTITIA.