LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AbstractLinguisticLogger.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 *
8 * @file AbstractLinguisticLogger.h
9 * @author Romaric Besancon (romaric.besancon@cea.fr)
10 * @date Thu Aug 3 2006
11 * copyright Copyright (C) 2006-2012 by CEA LIST
12 * Project LinguisticProcessing
13 *
14 * @brief generic process unit logger
15 *
16 ***********************************************************************/
17
18#ifndef LIMA_LINGUISTICPROCESSING_LINGUISTICPROCESSORS_ABSTRACTLINGUISTICLOGGER_H
19#define LIMA_LINGUISTICPROCESSING_LINGUISTICPROCESSORS_ABSTRACTLINGUISTICLOGGER_H
20
23
24namespace Lima {
25namespace LinguisticProcessing {
26
33{
34public:
35 AbstractLinguisticLogger(const std::string& defaultSuffix=".log");
37
38 virtual void init(
40 Manager* manager) override;
41
42 bool openLogFile(std::ofstream& output,const std::string& sourceFile) const;
43
44 virtual LimaStatusCode process(AnalysisContent& analysis) const override = 0;
45
46private:
47 std::string m_outputSuffix;
48 bool m_append;
49};
50
51
52} // end namespace
53} // end namespace
54
55#endif
#define LIMA_LPMISC_EXPORT
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Manage initialization of InitializableObjects using configuration module and parameters.
A generic process unit to log information in files: contains some common informations such as : outpu...
virtual LimaStatusCode process(AnalysisContent &analysis) const override=0
Process on data in analysisContent.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236