LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AbstractTextualAnalysisDumper.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 * @author Romaric Besancon (romaric.besancon@cea.fr)
8 * @date Fri Jan 21 2011
9 * @brief a abstract class the dumpers, containing the common
10 * mechanisms for communication with handler or local file
11 ***********************************************************************/
12
13#ifndef ABSTRACTTEXTUALANALYSISDUMPER_H
14#define ABSTRACTTEXTUALANALYSISDUMPER_H
15
19
20namespace Lima {
21namespace LinguisticProcessing {
22
23 // TODO a faire hériter de AbstractAnalysisDumper dans Common.
24 // [hlb] Pour une raison à déterminer, il y a un pb (pour les dumper fils) si cette classe n'hérite pas directement de MediaProcessUnit
26{
27 public:
30
31 virtual void init(
33 Manager* manager) override
34 ;
35
36 virtual LimaStatusCode process(AnalysisContent& analysis) const override=0;
37
38 // create the stream on which the data will be dumped
39 std::shared_ptr<DumperStream> initialize(AnalysisContent& analysis) const;
40
41 protected:
42 MediaId m_language;
43 std::ostream* m_out;
44 std::string m_handlerName; /* < the handler for communication with the client */
45
46 // members for file management
47 std::string m_outputFile; /* < the file name for local file logging */
48 std::string m_outputSuffix; /* < the suffix for local file logging */
49 bool m_stripInputSuffix; /* < whether to remove the input file suffix before
50 adding (or not) its suffix to the local file */
53
54};
55
56} // end namespace
57} // end namespace
58
59#endif
#define LIMA_LINGUISTICPROCESSORS_EXPORT
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Manage initialization of InitializableObjects using configuration module and parameters.
virtual LimaStatusCode process(AnalysisContent &analysis) const override=0
Process on data in analysisContent.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236