32 #ifndef BOOST_FILESYSTEM_VERSION
33 #define BOOST_FILESYSTEM_VERSION 2
35 #include <boost/filesystem.hpp>
37 #include "WExportCommon.h"
63 explicit WSharedLib( boost::filesystem::path lib );
104 template <
typename FuncType >
105 void fetchFunction(
const std::string& name, FuncType& func )
const;
116 template <
typename PtrType >
117 void fetchVariable(
const std::string& name, PtrType& variable )
const;
124 static std::string getSystemPrefix();
131 static std::string getSystemSuffix();
139 static std::string getSystemLibPath();
146 typedef void (*func_ptr_type)(void);
155 func_ptr_type findFunction(
const std::string& name )
const;
164 void* findVariable(
const std::string& name )
const;
173 template <
typename FuncType >
176 func =
reinterpret_cast< FuncType
>(
findFunction( name ) );
179 template <
typename PtrType >
182 variable =
static_cast< PtrType
>(
findVariable( name ) );
185 #endif // WSHAREDLIB_H