LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
StatusLogger.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_LINGUISTICPROCESSINGSTATUSLOGGER_H
11#define LIMA_LINGUISTICPROCESSINGSTATUSLOGGER_H
12
15
16#include <set>
17#include <fstream>
18
19#ifdef WIN32
20#include <WinSock2.h>
21#endif
22
23namespace Lima
24{
25
26namespace LinguisticProcessing
27{
28
29#define STATUSLOGGER_CLASSID "StatusLogger"
30
35{
36public:
37
39 virtual ~StatusLogger();
40
41 virtual void init(
43 Manager* manager) override;
44
45 virtual LimaStatusCode process(AnalysisContent& analysis) const override;
46
47private:
48
49 std::unique_ptr< std::ofstream > m_out;
50 std::set<std::string> m_toLog;
51 std::string m_statusFile;
52 uint64_t m_predTime;
53
54};
55
56}
57
58}
59
60#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.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236