LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
EnhancedAnalysisDictionary.h
Go to the documentation of this file.
1// Copyright 2002-2015 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6#ifndef LIMA_LINGUISTICPROCESSING_ANALYSISDICTENHANCEDANALYSISDICTIONARY_H
7#define LIMA_LINGUISTICPROCESSING_ANALYSISDICTENHANCEDANALYSISDICTIONARY_H
8
11#include "DictionaryData.h"
14
15namespace Lima {
16
17namespace LinguisticProcessing {
18
19namespace AnalysisDict {
20
21#define ENHANCEDANALYSISDICTIONARY_CLASSID "EnhancedAnalysisDictionary"
22
23class EnhancedAnalysisDictionaryPrivate;
28{
29 Q_OBJECT
30public:
31 EnhancedAnalysisDictionary(const QString& dataFilePath = QString());
32
35 std::shared_ptr<Lima::Common::AbstractAccessByString> access,
36 const std::string& dataFile);
37
39
40 virtual void init(
42 Manager* manager) override;
43
44 virtual DictionaryEntry getEntry(const Lima::LimaString& word) const override;
45 virtual DictionaryEntry getEntry(const StringsPoolIndex wordId) const override;
46 virtual DictionaryEntry getEntry(const StringsPoolIndex wordId,
47 const Lima::LimaString& word) const override;
56 virtual std::pair< DictionarySubWordIterator, DictionarySubWordIterator >
57 getSubWordEntries(const int offset,
58 const LimaString& key) const override;
59
60 virtual std::pair< DictionarySuperWordIterator, DictionarySuperWordIterator >
61 getSuperWordEntries(const LimaString& key) const override;
62
63 virtual uint64_t getSize() const override;
64
65 DictionaryEntry getEntryData(const StringsPoolIndex entryId) const;
66
67private Q_SLOTS:
68 void dictionaryFileChanged ( const QString & path );
69 void slotAccessFileReloaded(std::shared_ptr<Common::AbstractAccessByString> access);
70
71private :
74
76};
77
78}
79
80}
81
82}
83
84#endif
#define LIMA_ANALYSISDICT_EXPORT
NAUTITIA.
QString LimaString
Definition LimaString.h:33