LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AbstractDictionaryEntry.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 * Copyright (C) 2004-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10
11#ifndef LIMA_LINGUISTICPROCESSING_ANALYSISDICT_ABSTRACTDICTIONARYENTRY_H
12#define LIMA_LINGUISTICPROCESSING_ANALYSISDICT_ABSTRACTDICTIONARYENTRY_H
13
14#include "AnalysisDictExport.h"
17
18namespace Lima {
19namespace LinguisticProcessing {
20namespace AnalysisDict {
21
23{
24 public:
26 StringsPoolIndex entryId,
27 bool isFinal,
28 bool isEmpty,
29 bool hasLingInfos,
30 bool hasConcatenated,
31 bool hasAccentedForm);
32
33// AbstractDictionaryEntry(const AbstractDictionaryEntry& de);
34
36
38
39 inline StringsPoolIndex getEntryId() const;
40 inline bool isFinal() const;
41 inline bool isEmpty() const;
42 inline bool hasLingInfos() const;
43 virtual void parseLingInfos(AbstractDictionaryEntryHandler* handler) const = 0;
44 inline bool hasConcatenated() const;
45 virtual void parseConcatenated(AbstractDictionaryEntryHandler* handler) const = 0;
46 inline bool hasAccentedForms() const;
47 virtual void parseAccentedForms(AbstractDictionaryEntryHandler* handler) const = 0;
48
49 protected:
50
51 StringsPoolIndex m_entryId;
57
58};
59
61{
62 public:
63 DictionaryEntry(std::shared_ptr<AbstractDictionaryEntry> delegate);
64 DictionaryEntry(const DictionaryEntry& dicoEntry);
65 virtual ~DictionaryEntry();
66 DictionaryEntry& operator=(const DictionaryEntry& dicoEntry);
67
68 inline StringsPoolIndex getEntryId() const;
69 inline bool isFinal() const;
70 inline bool isEmpty() const;
71 inline bool hasLingInfos() const;
73 inline bool hasConcatenated() const;
75 inline bool hasAccentedForms() const;
77
78 private:
79 std::shared_ptr<AbstractDictionaryEntry> m_delegate;
80};
81
82} // AnalysisDict
83} // LinguisticProcessing
84} // Lima
85
86#include "AbstractDictionaryEntry.tcc"
87
88#endif
#define LIMA_ANALYSISDICT_EXPORT
virtual void parseConcatenated(AbstractDictionaryEntryHandler *handler) const =0
virtual void parseLingInfos(AbstractDictionaryEntryHandler *handler) const =0
virtual void parseAccentedForms(AbstractDictionaryEntryHandler *handler) const =0
void parseAccentedForms(AbstractDictionaryEntryHandler *handler) const
void parseConcatenated(AbstractDictionaryEntryHandler *handler) const
void parseLingInfos(AbstractDictionaryEntryHandler *handler) const
NAUTITIA.