forked from cms-patatrack/pixeltrack-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SharedLibrary.h
53 lines (39 loc) · 1.24 KB
/
SharedLibrary.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef FWCore_PluginManager_SharedLibrary_h
#define FWCore_PluginManager_SharedLibrary_h
// -*- C++ -*-
//
// Package: PluginManager
// Class : SharedLibrary
//
/**\class SharedLibrary SharedLibrary.h FWCore/PluginManager/interface/SharedLibrary.h
Description: Handles the loading of a SharedLibrary
Usage:
<usage>
*/
//
// Original Author: Chris Jones
// Created: Thu Apr 5 15:30:08 EDT 2007
//
// system include files
#include <string>
// user include files
// forward declarations
namespace edmplugin {
class SharedLibrary {
public:
SharedLibrary(const std::string& iName);
~SharedLibrary();
// ---------- const member functions ---------------------
bool symbol(const std::string& iSymbolName, void*& iSymbol) const;
const std::string& path() const { return path_; }
// ---------- static member functions --------------------
// ---------- member functions ---------------------------
private:
SharedLibrary(const SharedLibrary&) = delete; // stop default
const SharedLibrary& operator=(const SharedLibrary&) = delete; // stop default
// ---------- member data --------------------------------
void* libraryHandle_;
std::string path_;
};
} // namespace edmplugin
#endif