LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
BowTextWriter.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_LINGUISTICPROCESSINGBOWTEXTWRITER_H
11#define LIMA_LINGUISTICPROCESSINGBOWTEXTWRITER_H
12
15
16#include <fstream>
17
18namespace Lima {
19namespace Common {
20 namespace Misc {
21 class GenericDocumentProperties;
22 }
23}
24namespace LinguisticProcessing {
25
26#define BOWTEXTWRITER_CLASSID "BowTextWriter"
27
28class BowTextWriterPrivate;
33{
34 Q_OBJECT
35public:
37
38 virtual ~BowTextWriter();
39
40 virtual void endAnalysis() override;
41 virtual void endDocument() override;
42 virtual void handle(const char* buf, int length) override;
43 virtual void startAnalysis() override;
44 virtual void startDocument(const Common::Misc::GenericDocumentProperties& props) override;
45 virtual void startNode( const std::string& elementName, bool forIndexing ) override;
46 virtual void endNode( const Common::Misc::GenericDocumentProperties& props ) override;
47
48 void setOut(std::ostream* out) override;
49private:
51 BowTextWriter& operator=(const BowTextWriter&);
53};
54
55}
56
57}
58
59#endif
#define LIMA_ANALYSISHANDLERS_EXPORT
NAUTITIA.