LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
EventTemplateDataXmlLogger.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 EventTemplateDataXmlLogger.h
9 * @author Romaric Besancon (romaric.besancon@cea.fr)
10 * @date Mon Sep 05 2011
11 * copyright Copyright (C) 2011 by CEA LIST
12 * Project LIMA
13 *
14 * @brief XML logger for recognized events
15 *
16 *
17 ***********************************************************************/
18
19#ifndef EVENTTEMPLATEDATAXMLLOGGER_H
20#define EVENTTEMPLATEDATAXMLLOGGER_H
21
22#include "EventAnalysisExport.h"
23#include "EventTemplateData.h"
25
26namespace Lima {
27namespace LinguisticProcessing {
28namespace EventAnalysis {
29
30#define EVENTTEMPLATEDATAXMLLOGGER_CLASSID "EventTemplateDataXmlLogger"
31
33{
34 public:
37
38 virtual void init(
40 Manager* manager) override;
41
42 virtual LimaStatusCode process(AnalysisContent& analysis) const override;
43
44 private:
45 std::string m_eventData;
46
47 void outputEventData(std::ostream& out,
48 const EventTemplateData* eventData,
49 const Common::AnnotationGraphs::AnnotationData* annotationData) const;
50 void outputEntity(std::ostream& out,
53 const Common::AnnotationGraphs::AnnotationData* annotationData) 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
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Holds an annotation graph and gives an API to manipulate it.
Manage initialization of InitializableObjects using configuration module and parameters.
An AnalysisData containing a LinguisticGraph with a language and an id.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236