LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
EventTemplateElement.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 EventTemplateElement.h
9 * @author Romaric Besancon (romaric.besancon@cea.fr)
10 * @date Thu Sep 1 2011
11 * copyright Copyright (C) 2011 by CEA LIST
12 * Project LIMA
13 *
14 * @brief element of an event template, defined by an entity occurrence
15 *
16 *
17 ***********************************************************************/
18
19#ifndef EVENTTEMPLATEELEMENT_H
20#define EVENTTEMPLATEELEMENT_H
21
22#include "EventAnalysisExport.h"
26
27namespace Lima {
28namespace LinguisticProcessing {
29namespace EventAnalysis {
30
32{
33 public:
39
40 const Common::MediaticData::EntityType& getType() const { return m_type; }
41 const LinguisticAnalysisStructure::AnalysisGraph* getGraph() const { return m_graph; }
42 LinguisticGraphVertex getVertex() const { return m_vertex; }
43 LinguisticAnalysisStructure::Token* getToken() const;
44 uint64_t getPositionBegin() const;
45 uint64_t getPositionEnd() const;
46
47 //comparison function: do not use equality operator because it's not strict equality
48 bool isSimilar(const EventTemplateElement& elt) const;
49
50 LIMA_EVENTANALISYS_EXPORT friend std::ostream& operator<<(std::ostream& os, const EventTemplateElement& elt);
51 LIMA_EVENTANALISYS_EXPORT friend QDebug& operator<<(QDebug& os, const EventTemplateElement& elt);
52
53 private:
56 LinguisticGraphVertex m_vertex;
57};
58
59} // end namespace
60} // end namespace
61} // end namespace
62
63#endif
#define LIMA_EVENTANALISYS_EXPORT
QDebug & operator<<(QDebug &qd, const std::string &str)
Definition QsLog.cpp:39
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
const LinguisticAnalysisStructure::AnalysisGraph * getGraph() const
const Common::MediaticData::EntityType & getType() const
An AnalysisData containing a LinguisticGraph with a language and an id.
NAUTITIA.