LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SBowDocumentWriter.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_LINGUISTICPROCESSINGSBOWDOCUMENTWRITER_H
11#define LIMA_LINGUISTICPROCESSINGSBOWDOCUMENTWRITER_H
12
16
17#include <iostream>
18
19namespace Lima
20{
21
23{
24#define LPCLIENTSBOWHANDLERLOGINIT LOGINIT("LP::SBoWHandler");
25
30{
31 Q_OBJECT
32public:
34
35 virtual ~SBowDocumentWriter();
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
59 virtual void setOut( std::ostream* out ) override;
60
61private:
62 std::ostream* m_out;
63
64};
65
66}
67
68}
69
70#endif
#define LIMA_ANALYSISHANDLERS_EXPORT
void endAnalysis() override
notify the end of an analysis content
virtual void setOut(std::ostream *out) override
set the output stream.
void handle(const char *buf, int length) override
gives content.
void startAnalysis() override
notify the start of an analysis content
void endNode(const Common::Misc::GenericDocumentProperties &props) override
notify the end of a hierarchyNode
void endDocument() override
notify the end of the document
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
NAUTITIA.