LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AbstractLexiconIdGenerator.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
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
15
#include "
common/LimaCommon.h
"
16
#include "
AbstractLexiconIdGenerator.h
"
17
18
namespace
Lima
{
19
namespace
Common {
20
21
// default behavior of functor
22
int
AbstractLexiconIdGeneratorInformer::operator()
(
23
uint64_t
/* unused cmp1 */
, uint64_t
/* unused cmp2 */
,
24
uint16_t
/* unused type */
, uint64_t
/* unused newId */
)
25
{
26
return
0;
27
}
28
29
AbstractLexiconIdGeneratorInformer
*
AbstractLexiconIdGeneratorInformer::theInformer
= 0;
30
31
AbstractLexiconIdGeneratorInformer
*
AbstractLexiconIdGeneratorInformer::getInstance
() {
32
if
(
theInformer
==
nullptr
) {
33
theInformer
=
new
AbstractLexiconIdGeneratorInformer
();
34
}
35
return
theInformer
;
36
}
37
int16_t
AbstractLexiconIdGeneratorInformer::LINK_TYPE_DEP
= 1;
38
int16_t
AbstractLexiconIdGeneratorInformer::LINK_TYPE_EXT
= 2;
39
40
}
// namespace Common
41
}
// namespace Lima
AbstractLexiconIdGenerator.h
LimaCommon.h
Lima::Common::AbstractLexiconIdGeneratorInformer
Definition
AbstractLexiconIdGenerator.h:26
Lima::Common::AbstractLexiconIdGeneratorInformer::LINK_TYPE_DEP
static int16_t LINK_TYPE_DEP
Definition
AbstractLexiconIdGenerator.h:32
Lima::Common::AbstractLexiconIdGeneratorInformer::getInstance
static AbstractLexiconIdGeneratorInformer * getInstance()
Definition
AbstractLexiconIdGenerator.cpp:31
Lima::Common::AbstractLexiconIdGeneratorInformer::operator()
virtual int operator()(uint64_t cmp1, uint64_t cmp2, uint16_t type, uint64_t newId)
Definition
AbstractLexiconIdGenerator.cpp:22
Lima::Common::AbstractLexiconIdGeneratorInformer::AbstractLexiconIdGeneratorInformer
AbstractLexiconIdGeneratorInformer()
Definition
AbstractLexiconIdGenerator.h:36
Lima::Common::AbstractLexiconIdGeneratorInformer::LINK_TYPE_EXT
static int16_t LINK_TYPE_EXT
Definition
AbstractLexiconIdGenerator.h:33
Lima::Common::AbstractLexiconIdGeneratorInformer::theInformer
static AbstractLexiconIdGeneratorInformer * theInformer
Definition
AbstractLexiconIdGenerator.h:37
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_common
src
common
FsaAccess
AbstractLexiconIdGenerator.cpp
Generated by
1.9.8