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
22namespace LinguisticProcessing
23{
24#define LPCLIENTSBOWHANDLERLOGINIT LOGINIT("LP::SBoWHandler");
25
30{
31 Q_OBJECT
32public:
34
35 virtual ~SBowDocumentWriter();
36
38 void startDocument(const Common::Misc::GenericDocumentProperties& props) override;
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
NAUTITIA.