LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Events.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
// NAUTITIA
7
//
8
// jys 11-JUL-2002
9
//
10
// Events is a string of events. Class of characters and other
11
// events are in the form of printable bytes. Class Events
12
// holds events which are of the same effect.
13
14
#ifndef LIMA_LINGUISTICPROCESSING_FLATTOKENIZER_EVENTS_H
15
#define LIMA_LINGUISTICPROCESSING_FLATTOKENIZER_EVENTS_H
16
17
#include "
FlatTokenizerExport.h
"
18
#include "
CharClass.h
"
19
#include "
common/Data/LimaString.h
"
20
21
namespace
Lima
22
{
23
namespace
LinguisticProcessing
24
{
25
namespace
FlatTokenizer
26
{
27
28
class
CharChart;
29
30
class
LIMA_FLATTOKENIZER_EXPORT
Events
:
public
std::vector<const CharClass*>
31
{
32
33
public
:
34
explicit
Events
(std::shared_ptr<CharChart> chart);
35
virtual
~Events
();
36
37
void
addEventNamed(
const
LimaString
& eventName);
38
39
// Return 1 if supplied event is into the Events class, 0
40
// otherwise
41
bool
isRecognized(
const
Lima::LimaChar
& event)
const
;
42
43
private
:
44
std::shared_ptr<CharChart> m_chart;
45
};
46
47
}
//namespace FlatTokenizer
48
}
// namespace LinguisticProcessing
49
}
// namespace Lima
50
51
52
#endif
// LIMA_LINGUISTICPROCESSING_TOKENIZER_EVENTS_H
CharClass.h
FlatTokenizerExport.h
LIMA_FLATTOKENIZER_EXPORT
#define LIMA_FLATTOKENIZER_EXPORT
Definition
FlatTokenizerExport.h:27
LimaString.h
Lima::LinguisticProcessing::FlatTokenizer::Events
Definition
Events.h:31
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::LimaChar
QChar LimaChar
Definition
LimaString.h:30
Lima::LimaString
QString LimaString
Definition
LimaString.h:33
lima_linguisticprocessing
src
linguisticProcessing
core
FlatTokenizer
Events.h
Generated by
1.9.8