LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
EventTemplateDefinitionResource.h
Go to the documentation of this file.
1// Copyright (C) 2011 by CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6#ifndef EVENTTEMPLATEDEFINITIONRESOURCE_H
7#define EVENTTEMPLATEDEFINITIONRESOURCE_H
8
12
13namespace Lima {
14namespace LinguisticProcessing {
15namespace EventAnalysis {
16
17#define EVENTTEMPLATEDEFINITIONRESOURCE_CLASSID "EventTemplateDefinition"
18
20{
21 Q_OBJECT
22 public:
25
27 Manager* manager) override;
28
29 // mapping is oriented, return 1 if mapping elt1 -> elt2, -1 if mapping elt2 -> elt1, 0 otherwise
30 int existsMapping(const std::string& eltName1, const std::string& eltName2) const;
31 const std::string& getName() const;
32 const std::string& getMention() const;
33 const std::map<std::string,Common::MediaticData::EntityType>& getStructure() const;
34 unsigned int getCardinality(const std::string& role) const;
35
36 private:
37 MediaId m_language;
38 EventTemplateStructure m_structure;
39 std::map<std::string, std::set<std::string> > m_elementMapping;
40 std::map<std::string, unsigned int> m_cardinalities;
41};
42
43} // end namespace
44} // end namespace
45} // end namespace
46
47#endif
#define LIMA_EVENTANALISYS_EXPORT
Manage initialization of InitializableObjects using configuration module and parameters.
NAUTITIA.