LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
NameIndexResource.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-2017 by CEA LIST *
8 * *
9 ***************************************************************************/
10#ifndef LIMA_MORPHOLOGICANALYSIS_NAMEINDEXRESOURCE_H
11#define LIMA_MORPHOLOGICANALYSIS_NAMEINDEXRESOURCE_H
12
14#include <QReadWriteLock>
15
16namespace Lima
17{
18namespace LinguisticProcessing
19{
20namespace MorphologicAnalysis
21{
22typedef std::multimap< std::basic_string<wchar_t>, std::basic_string<wchar_t> > NameIndex;
25{
26/*
27 * Q_OBJECT
28*/
29public:
30/*
31 NameIndexResource(QObject* parent = 0);
32*/
33 friend class ApproxStringMatcher;
35
36 virtual ~NameIndexResource();
37
38 virtual void init(
40 Manager* manager) override;
41 bool withIndex() const { return m_withIndex; }
42
43 static std::basic_string<wchar_t> LimaStr2wcharStr( const QString& limastr );
44
45/*
46private Q_SLOTS:
47 void accessFileChanged ( const QString & path );
48*/
49
50protected:
51
52private:
53 void readNames( const std::string& filepath );
54 bool m_withIndex;
55 // A read/write locker to prevent accessing m_dicoData during its loading
56/*
57 QReadWriteLock m_lock;
58*/
59};
60
61}
62
63}
64
65}
66
67#endif
#define LIMA_ANALYSISDICT_EXPORT
Manage initialization of InitializableObjects using configuration module and parameters.
virtual void init(Common::XMLConfigurationFiles::GroupConfigurationStructure &unitConfiguration, Manager *manager) override
initialize with parameters from configuration file.
std::multimap< std::basic_string< wchar_t >, std::basic_string< wchar_t > > NameIndex
NAUTITIA.