LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
BowDocumentWriter.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_LINGUISTICPROCESSINGBOWDOCUMENTWRITER_H
11#define LIMA_LINGUISTICPROCESSINGBOWDOCUMENTWRITER_H
12
16
17#include <iostream>
18
19namespace Lima
20{
21
23{
24
25
30{
31 Q_OBJECT
32public:
33 BowDocumentWriter(std::ostream* out);
34
35 virtual ~BowDocumentWriter();
36
39
41 void endDocument() override;
42
44 void startAnalysis() override;
45
47 void endAnalysis() override;
48
50 void handle(const char* buf,int length) override;
51
53 void startNode( const std::string& elementName, bool forIndexing ) override;
54
56 void endNode( const Common::Misc::GenericDocumentProperties& props ) override;
57
58private:
59 std::ostream* m_out;
60
61};
62
63}
64
65}
66
67#endif
#define LIMA_ANALYSISHANDLERS_EXPORT
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 endAnalysis() override
notify the end of an analysis content
void startAnalysis() override
notify the start of an analysis content
void endDocument() override
notify the end of the document
void endNode(const Common::Misc::GenericDocumentProperties &props) override
notify the end of a hierarchyNode
void handle(const char *buf, int length) override
gives content.
NAUTITIA.