RobWorkProject  23.9.11-
Public Member Functions | List of all members
DynamicLibraryLoaderBase Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DynamicLibraryLoaderBase()

DynamicLibraryLoaderBase ( const std::string &  filename)

Open the library.

If the library cannot be opened an exception is thrown

Parameters
filename[in] Library filename

Member Function Documentation

◆ getFileExtension()

virtual std::string getFileExtension ( ) const
virtual

Returns file extension of dynamic libraries on the current platform.

The return value will be Windows: ".dll" Unix/Linux: ".so" MacOSX: ".dylib"

◆ getObject()

void* getObject ( const std::string &  funcname)

Returns pointer to object loaded using the factory function funcname.

Parameters
funcname[in] Name of factory function in library (usually factory0)

The documentation for this class was generated from the following file: