Belle II Software development
DynamicLoader.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#ifndef _Belle2_DynamicLoader_h
9#define _Belle2_DynamicLoader_h
10
11#include <string>
12
13namespace Belle2 {
20
21 public:
22 DynamicLoader() {}
23 DynamicLoader(const std::string& path)
24 {
25 open(path);
26 }
28
29 public:
30 void* open(const std::string& lib_path);
31 void* load(const std::string& func_name);
32 void close();
33
34 private:
35 void* m_handle;
36
37 };
38
40}
41
42#endif
Abstract base class for different kinds of events.