![]() |
RobWorkProject
23.9.11-
|
Base for DynamicLibraryLoader. More...
#include <DynamicLibraryLoaderBase.hpp>
Inherited by DynamicLibraryLoader< T >.
Public Member Functions | |
DynamicLibraryLoaderBase (const std::string &filename) | |
Open the library. More... | |
virtual | ~DynamicLibraryLoaderBase () |
Closes the handle to the library. | |
void * | getObject (const std::string &funcname) |
Returns pointer to object loaded using the factory function funcname. More... | |
virtual std::string | getFileExtension () const |
Returns file extension of dynamic libraries on the current platform. More... | |
Base for DynamicLibraryLoader.
The DynamicLibraryLoaderBase implements the platform dependent code associated with dynamic loading of libraries. It has been tested on Linux, MingW (on Windows XP), Visual Studio 2005, and MacOS 10.5.
DynamicLibraryLoaderBase | ( | const std::string & | filename | ) |
Open the library.
If the library cannot be opened an exception is thrown
filename | [in] Library filename |
|
virtual |
Returns file extension of dynamic libraries on the current platform.
The return value will be Windows: ".dll" Unix/Linux: ".so" MacOSX: ".dylib"
void* getObject | ( | const std::string & | funcname | ) |
Returns pointer to object loaded using the factory function funcname.
funcname | [in] Name of factory function in library (usually factory0) |