LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
LinguisticResources.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
12#ifndef LIMA_LINGUISTICPROCESSING_LINGUISTICRESOURCES_LINGUISTICRESOURCES_H
13#define LIMA_LINGUISTICPROCESSING_LINGUISTICRESOURCES_LINGUISTICRESOURCES_H
14
16#include "AbstractResource.h"
17
18namespace Lima
19{
20 namespace Common {
21 namespace XMLConfigurationFiles {
22 class ModuleConfigurationStructure;
23 }
24 }
25namespace LinguisticProcessing
26{
27
28class LinguisticResourcesPrivate;
33{
34friend class Singleton<LinguisticResources>;
35
36public:
37
38 virtual ~LinguisticResources();
39
40 void clearResources();
41
42 std::shared_ptr<AbstractResource> getResource(
43 MediaId lang,
44 const std::string& id) const;
45
46 void initLanguage(
47 MediaId lang,
49 bool registerMainKeysInStringPool);
50
52 getModuleConfiguration(MediaId lang);
53
54private:
55
58 LinguisticResources& operator=(const LinguisticResources& lr);
59
61};
62
63
64} // LinguisticProcessing
65} // Lima
66
67#endif
#define LIMA_LINGUISTICRESOURCES_EXPORT
singleton that holds all languages resources
Defines access method for the singleton pattern.
Definition Singleton.h:22
NAUTITIA.