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"
20
21namespace Lima
22{
23namespace LinguisticProcessing
24{
25namespace FlatTokenizer
26{
27
28class CharChart;
29
30class LIMA_FLATTOKENIZER_EXPORT Events : public std::vector<const CharClass*>
31{
32
33public:
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
43private:
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
#define LIMA_FLATTOKENIZER_EXPORT
NAUTITIA.
QChar LimaChar
Definition LimaString.h:30
QString LimaString
Definition LimaString.h:33