LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AbstractLexiconIdGenerator.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) 20036 by CEA *
8 * author Olivier MESNARD olivier.mesnard@cea.fr *
9 * *
10 * abstractLexiconIdAccessor.h - description *
11 * AbstractLexiconIdAccessor = interface class *
12 * find implementations in LexiconIdAccessor, defaultIdAccessor *
13 ***************************************************************************/
14#ifndef FSA_ABSTRACT_LEXICON_ID_GENERATOR_H
15#define FSA_ABSTRACT_LEXICON_ID_GENERATOR_H
16
17#include "common/LimaCommon.h"
18
20
21namespace Lima {
22namespace Common {
23
24// abstract functor class usefull to inform client of AbstractLexiconIdGenerator
25// of links created by getId(const std::vector<uint64_t>& structure )
27public:
29 virtual int operator() (
30 uint64_t cmp1, uint64_t cmp2, uint16_t type, uint64_t newId);
31 static AbstractLexiconIdGeneratorInformer* getInstance();
32 static int16_t LINK_TYPE_DEP;
33 static int16_t LINK_TYPE_EXT;
34
35protected:
38};
39
41{
42 public:
44 m_informer = informer;
45 }
47
48 // implementation of operation inherited from interface IndexElementIdGenerator
49 // rely on abstract operation implemented by concrete IdGenerator (fromMap or from fromFsaAccess)
50 virtual uint64_t getId(const LimaString& word) override = 0;
51 virtual uint64_t getId(const std::vector<uint64_t>& structure) override = 0;
52 protected:
54};
55
56} // namespace Common
57} // namespace Lima
58
59#endif //FSA_ABSTRACT_LEXICON_ID_GENERATOR_H
#define LIMA_FSAACCESS_EXPORT
Definition LimaCommon.h:130
static AbstractLexiconIdGeneratorInformer * theInformer
AbstractLexiconIdGeneratorInformer * m_informer
virtual uint64_t getId(const std::vector< uint64_t > &structure) override=0
virtual uint64_t getId(const LimaString &word) override=0
AbstractLexiconIdGenerator(AbstractLexiconIdGeneratorInformer *informer)
NAUTITIA.
QString LimaString
Definition LimaString.h:33