47 #ifndef _MIRA_SHAREDLIBRARY_H_ 48 #define _MIRA_SHAREDLIBRARY_H_ 53 #include <boost/shared_ptr.hpp> 102 static const char* getLibPrefix();
109 static const char* getLibPostfix();
116 static const char* getLibExtension();
132 closeSharedLibrary(mHandle);
144 return getSymbol(mHandle, symbol.c_str());
152 const char*
function);
181 void loadLibrary(
const Path& library);
187 void loadLibraries(
const Path& path);
bool isOpen() const
Return true if the shared library is currently open.
Definition: SharedLibrary.h:122
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
boost::filesystem::path Path
Typedef of a Path (shorter version for boost::filesystem::path)
Definition: Path.h:69
void close()
Close the shared library.
Definition: SharedLibrary.h:130
Class for loading multiple shared libraries.
Definition: SharedLibrary.h:169
std::list< SharedLibraryPtr > mLibraries
list of all loaded libraries
Definition: SharedLibrary.h:190
FARPROC Symbol
Definition: SharedLibrary.h:84
HMODULE Handle
Definition: SharedLibrary.h:83
Functions for modifying file system paths.
MIRA_BASE_EXPORT Path resolveLibraryName(const Path &path)
Adds the system dependent library pre- and suffix to the given name if necessary. ...
Class for loading a single shared library.
Definition: SharedLibrary.h:76
Symbol getSymbol(const std::string &symbol)
Get a symbol from the library.
Definition: SharedLibrary.h:142
boost::shared_ptr< SharedLibrary > SharedLibraryPtr
Definition: SharedLibrary.h:163