LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
DynamicLibrariesManager.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
20#ifndef DYNAMICLIBRARIES_H
21#define DYNAMICLIBRARIES_H
22
25
26#include <QtCore/QLibrary>
27
28#include <string>
29#include <map>
30#include <vector>
31#include <memory>
32
33class QString;
34namespace Lima {
35namespace Common {
36
37class DynamicLibrariesManagerPrivate;
38class LIMA_FACTORY_EXPORT DynamicLibrariesManager: public Singleton<DynamicLibrariesManager>
39{
41
42public:
44
45 bool isLoaded(const std::string& libName);
46#if defined(__has_feature)
47# if __has_feature(address_sanitizer)
48 __attribute__((no_sanitize("address", "thread")))
49 __attribute__((no_sanitize("leak")))
50 __attribute__((disable_sanitizer_instrumentation))
51# endif
52#endif
53 bool
54 loadLibrary(const std::string& libName);
55 void addSearchPath(const std::string& searchPath);
56 void addSearchPathes(QString searchPathes);
57
58 private:
60
61 std::unique_ptr<DynamicLibrariesManagerPrivate> m_d;
62};
63
64} // end namespace
65} // end namespace
66
67#endif
#define LIMA_FACTORY_EXPORT
Defines access method for the singleton pattern.
Definition Singleton.h:22
NAUTITIA.