47 #ifndef _MIRA_SHAREDLIBRARY_H_ 48 #define _MIRA_SHAREDLIBRARY_H_ 53 #include <boost/shared_ptr.hpp> 139 return getSymbol(mHandle, symbol.c_str());
147 const char*
function);
static const char * getLibPrefix()
Return the name prefix of libraries (e.g.
bool isOpen() const
Return true if the shared library is currently open.
Definition: SharedLibrary.h:117
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 loadLibrary(const Path &library)
Load a library and open it.
void close()
Close the shared library.
Definition: SharedLibrary.h:125
static void closeSharedLibrary(SharedLibrary::Handle handle)
low level closing of libraries without using the class wrapper
Class for loading multiple shared libraries.
Definition: SharedLibrary.h:164
SharedLibrary(const Path &library)
Loads the specified library.
void * Symbol
Definition: SharedLibrary.h:80
static const char * getLibExtension()
Return library extension The full library name is: <prefix>NAME<postfix><extension> ...
std::list< SharedLibraryPtr > mLibraries
list of all loaded libraries
Definition: SharedLibrary.h:185
void loadLibraries(const Path &path)
Load all libraries from a directory and open them.
Path resolveLibraryName(const Path &path)
Adds the system dependent library pre- and suffix to the given name if necessary. ...
Functions for modifying file system paths.
static SharedLibrary::Handle loadSharedLibrary(const char *library)
low level opening of libraries without using the class wrapper
static const char * getLibPostfix()
Returns the name postfix of libraries The full library name is: <prefix>NAME<postfix><extension> ...
Class for loading a single shared library.
Definition: SharedLibrary.h:76
void * Handle
Definition: SharedLibrary.h:79
Symbol getSymbol(const std::string &symbol)
Get a symbol from the library.
Definition: SharedLibrary.h:137
boost::shared_ptr< SharedLibrary > SharedLibraryPtr
Definition: SharedLibrary.h:158