Blue Brain BioExplorer
DynamicLib.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2024, EPFL/Blue Brain Project
3  * All rights reserved. Do not distribute without permission.
4  * Responsible Author: Juan Hernando <juan.hernando@epfl.ch>
5  *
6  * This file is part of Blue Brain BioExplorer <https://github.com/BlueBrain/BioExplorer>
7  *
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License version 3.0 as published
10  * by the Free Software Foundation.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21 
22 #pragma once
23 
25 
26 namespace core
27 {
29 {
30 public:
31  DynamicLib(const std::string& name);
32  ~DynamicLib();
33 
34  DynamicLib(DynamicLib&& other);
36  DynamicLib(const DynamicLib&) = delete;
37  DynamicLib& operator=(const DynamicLib&) = delete;
38 
39  void* getSymbolAddress(const std::string& name) const;
40 
41 private:
42  void* _handler{nullptr};
43 };
44 } // namespace core
void * getSymbolAddress(const std::string &name) const
Definition: DynamicLib.cpp:95
DynamicLib(const DynamicLib &)=delete
DynamicLib & operator=(DynamicLib &&other)
Definition: DynamicLib.cpp:88
DynamicLib(const std::string &name)
Definition: DynamicLib.cpp:36
DynamicLib & operator=(const DynamicLib &)=delete