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
"
23
#include "
common/MediaticData/EntityType.h
"
24
#include "
linguisticProcessing/core/LinguisticAnalysisStructure/AnalysisGraph.h
"
25
#include "
linguisticProcessing/core/LinguisticAnalysisStructure/Token.h
"
26
27
namespace
Lima
{
28
namespace
LinguisticProcessing {
29
namespace
EventAnalysis {
30
31
class
LIMA_EVENTANALISYS_EXPORT
EventTemplateElement
32
{
33
public
:
34
EventTemplateElement
();
35
EventTemplateElement
(
LinguisticGraphVertex
v,
36
const
LinguisticAnalysisStructure::AnalysisGraph
* graph,
37
const
Common::MediaticData::EntityType
& type);
38
~EventTemplateElement
();
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
:
54
Common::MediaticData::EntityType
m_type;
55
const
LinguisticAnalysisStructure::AnalysisGraph
* m_graph;
56
LinguisticGraphVertex
m_vertex;
57
};
58
59
}
// end namespace
60
}
// end namespace
61
}
// end namespace
62
63
#endif
AnalysisGraph.h
EntityType.h
EventAnalysisExport.h
LIMA_EVENTANALISYS_EXPORT
#define LIMA_EVENTANALISYS_EXPORT
Definition
EventAnalysisExport.h:27
operator<<
QDebug & operator<<(QDebug &qd, const std::string &str)
Definition
QsLog.cpp:39
LinguisticGraphVertex
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Definition
LinguisticGraph.h:100
Token.h
Lima::Common::MediaticData::EntityType
Definition
EntityType.h:38
Lima::LinguisticProcessing::EventAnalysis::EventTemplateElement
Definition
EventTemplateElement.h:32
Lima::LinguisticProcessing::EventAnalysis::EventTemplateElement::getGraph
const LinguisticAnalysisStructure::AnalysisGraph * getGraph() const
Definition
EventTemplateElement.h:41
Lima::LinguisticProcessing::EventAnalysis::EventTemplateElement::getType
const Common::MediaticData::EntityType & getType() const
Definition
EventTemplateElement.h:40
Lima::LinguisticProcessing::EventAnalysis::EventTemplateElement::getVertex
LinguisticGraphVertex getVertex() const
Definition
EventTemplateElement.h:42
Lima::LinguisticProcessing::LinguisticAnalysisStructure::AnalysisGraph
An AnalysisData containing a LinguisticGraph with a language and an id.
Definition
AnalysisGraph.h:47
Lima::LinguisticProcessing::LinguisticAnalysisStructure::Token
holds surface data of a token
Definition
Token.h:32
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_linguisticprocessing
src
linguisticProcessing
core
EventAnalysis
EventTemplateElement.h
Generated by
1.9.8