Mercurial > hg > orthanc
comparison Plugins/Engine/SharedLibrary.h @ 887:4066e6f2d134 plugins
PluginsManager
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 14 Jun 2014 19:20:38 +0200 |
parents | 0570a8c859cb |
children | f57802f8b4dc |
comparison
equal
deleted
inserted
replaced
886:29087d728e0a | 887:4066e6f2d134 |
---|---|
39 namespace Orthanc | 39 namespace Orthanc |
40 { | 40 { |
41 class SharedLibrary : boost::noncopyable | 41 class SharedLibrary : boost::noncopyable |
42 { | 42 { |
43 private: | 43 private: |
44 std::string path_; | |
44 void *handle_; | 45 void *handle_; |
45 | 46 |
46 void* GetFunctionInternal(const std::string& name); | 47 void* GetFunctionInternal(const std::string& name); |
47 | 48 |
48 public: | 49 public: |
49 SharedLibrary(const std::string& path); | 50 SharedLibrary(const std::string& path); |
50 | 51 |
51 ~SharedLibrary(); | 52 ~SharedLibrary(); |
52 | 53 |
54 const std::string& GetPath() const | |
55 { | |
56 return path_; | |
57 } | |
58 | |
53 bool HasFunction(const std::string& name); | 59 bool HasFunction(const std::string& name); |
54 | 60 |
55 void* GetFunction(const std::string& name); | 61 void* GetFunction(const std::string& name); |
56 }; | 62 }; |
57 } | 63 } |