fw4spl
Win32.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifdef _WIN32
8 
9 
10 #ifndef __FWRUNTIME_DL_WIN32_HPP__
11 #define __FWRUNTIME_DL_WIN32_HPP__
12 
13 #include "fwRuntime/config.hpp"
14 #include "fwRuntime/dl/Native.hpp"
15 
16 #include <windows.h>
17 
18 namespace fwRuntime
19 {
20 
21 namespace dl
22 {
23 
28 struct Win32 : public Native
29 {
35  Win32( const boost::filesystem::path & modulePath ) noexcept;
36 
42  bool isLoaded() const noexcept;
43 
51  void * getSymbol(const std::string& name) const;
52 
56  void load();
57 
61  void unload();
62 
63 
64  private:
65 
69  HMODULE m_handle;
70 
71 };
72 
73 
74 } // namespace dl
75 
76 } // namespace fwRuntime
77 
78 
79 #endif // __FWRUNTIME_DL_WIN32_HPP__
80 
81 
82 #endif // #ifdef _WIN32
STL namespace.
The namespace fwRuntime contains classes to manage bundle, configuration element, extension point in ...