LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
EventXmlLogger.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 EventXmlLogger.h
9 * @author Romaric Besancon (romaric.besancon@cea.fr)
10 * @date Thu Mar 24 2011
11 * copyright Copyright (C) 2011 by CEA LIST
12 * Project M
13 *
14 * @brief XML logger for recognized events
15 *
16 *
17 ***********************************************************************/
18
19#ifndef EVENTXMLLOGGER_H
20#define EVENTXMLLOGGER_H
21
22#include "EventAnalysisExport.h"
23#include "Events.h"
24#include "EventData.h"
26
27namespace Lima {
28namespace LinguisticProcessing {
29namespace EventAnalysis {
30
31#define EVENTXMLLOGGER_CLASSID "EventXmlLogger"
32
34{
35 public:
37 virtual ~EventXmlLogger();
38
39 virtual void init(
41 Manager* manager) override;
42
43 virtual LimaStatusCode process(AnalysisContent& analysis) const override;
44
45 private:
46 std::string m_eventData;
47
48 void outputEvents(std::ostream& out,
49 const Events* eventData) const;
50 void outputEventData(std::ostream& out,
51 const EventData* eventData) const;
52 void outputEntity(std::ostream& out,
53 const Entity& e) const;
54 std::string xmlString(const std::string& inputStr) const;
55
56};
57
58} // end namespace
59} // end namespace
60} // end namespace
61
62#endif
#define LIMA_EVENTANALISYS_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