charon-core  0.3.1
WindowsPluginLoader.h
1 /* This file is part of Charon.
2 
3  Charon is free software: you can redistribute it and/or modify
4  it under the terms of the GNU Lesser General Public License as published by
5  the Free Software Foundation, either version 3 of the License, or
6  (at your option) any later version.
7 
8  Charon is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU Lesser General Public License for more details.
12 
13  You should have received a copy of the GNU Lesser General Public License
14  along with Charon. If not, see <http://www.gnu.org/licenses/>.
15 */
24 #ifndef WINDOWSPLUGINLOADER_H_
25 #define WINDOWSPLUGINLOADER_H_
26 
27 #include <windows.h>
28 #include "AbstractPluginLoader.h"
29 
41 private:
45  HINSTANCE hInstLibrary;
46 
47 #ifdef MSVC
48 
54  LPCTSTR lastError(LPTSTR) const;
55 
56 #endif
57 public:
66  const std::string & n,
67  std::vector<std::string> &plpaths,
68  std::string &lSuffix,
70  PluginManagerInterface::PluginVersionIgnore);
71 
72  virtual void load() throw (PluginException);
73  virtual void unload() throw (PluginException);
74 
79  virtual ~WindowsPluginLoader();
80 };
81 
82 #endif /* WINDOWSPLUGINLOADER_H_ */
virtual void load()=0
Loads the plugin.
Declares an abstract base class for a plugin loader.
PluginVersionCheckLevel
info how to handle version information
HINSTANCE hInstLibrary
Points to the loaded library.
Handles ParameteredObject based plugins on Windows based systems.
#define charon_plugins_DLL_PUBLIC
Preprocessor macro to define this class/function as public visible, i.e.
Definition: DllEx.h:83
Abstract base class for a plugin loader.