LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SequenceEntryHandler.cpp
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
7
9
10namespace Lima
11{
12
13namespace LinguisticProcessing
14{
15
16namespace MorphologicAnalysis
17{
18
19void SequenceEntryHandler::startEntry(StringsPoolIndex form)
20{
21 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
22 it!=m_handlers.end();
23 it++)
24 {
25 (*it)->startEntry(form);
26 }
27}
28
30{
31 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
32 it!=m_handlers.end();
33 it++)
34 {
35 (*it)->endEntry();
36 }
37}
38
39void SequenceEntryHandler::foundLingInfos(StringsPoolIndex lemma,StringsPoolIndex norm)
40{
41 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
42 it!=m_handlers.end();
43 it++)
44 {
45 (*it)->foundLingInfos(lemma,norm);
46 }
47}
48
49void SequenceEntryHandler::deleteLingInfos(StringsPoolIndex lemma,StringsPoolIndex norm)
50{
51 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
52 it!=m_handlers.end();
53 it++)
54 {
55 (*it)->deleteLingInfos(lemma,norm);
56 }
57}
58
60{
61 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
62 it!=m_handlers.end();
63 it++)
64 {
65 (*it)->endLingInfos();
66 }
67}
68
70{
71 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
72 it!=m_handlers.end();
73 it++)
74 {
75 (*it)->foundConcatenated();
76 }
77}
78
80{
81 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
82 it!=m_handlers.end();
83 it++)
84 {
85 (*it)->deleteConcatenated();
86 }
87}
88
89void SequenceEntryHandler::foundComponent(uint64_t position, uint64_t length,StringsPoolIndex form)
90{
91 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
92 it!=m_handlers.end();
93 it++)
94 {
95 (*it)->foundComponent(position,length,form);
96 }
97}
98
100{
101 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
102 it!=m_handlers.end();
103 it++)
104 {
105 (*it)->endComponent();
106 }
107}
108
110{
111 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
112 it!=m_handlers.end();
113 it++)
114 {
115 (*it)->endConcatenated();
116 }
117}
118
120{
122 LDEBUG << "SequenceEntryHandler::foundAccentedForm" << form;
123 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
124 it!=m_handlers.end();
125 it++)
126 {
127 (*it)->foundAccentedForm(form);
128 }
129}
130
132{
133 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
134 it!=m_handlers.end();
135 it++)
136 {
137 (*it)->deleteAccentedForm(form);
138 }
139}
140
142{
143 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
144 it!=m_handlers.end();
145 it++)
146 {
147 (*it)->endAccentedForm();
148 }
149}
150
152{
153 for (std::vector<AbstractDictionaryEntryHandler*>::iterator it=m_handlers.begin();
154 it!=m_handlers.end();
155 it++)
156 {
157 (*it)->foundProperties(lings);
158 }
159}
160
161} // MorphologicAnalysis
162} // LinguisticProcessing
163} // Lima
#define LDEBUG
Definition LimaCommon.h:157
#define MORPHOLOGINIT
virtual void foundComponent(uint64_t position, uint64_t length, StringsPoolIndex form) override
virtual void foundLingInfos(StringsPoolIndex lemma, StringsPoolIndex norm) override
virtual void deleteLingInfos(StringsPoolIndex lemma, StringsPoolIndex norm) override
NAUTITIA.