#include <SharedLibrary.h>
Public Types | |
| typedef void * | SymbolType |
| The type of the symbol in the shared library when using Windows. | |
| typedef void *(*) | SymbolType () |
| The type of the symbol in the shared library when using Linux. | |
| typedef HINSTANCE | HandleType |
| The type of the handle to the shared library when using Windows. | |
| typedef void * | HandleType |
| The type of the handle to the shared library when using Linux. | |
Public Member Functions | |
| SymbolType | findSymbol (std::string const &symbol) |
| Finds the symbol in the library. | |
| SharedLibrary (boost::filesystem::path const &path) | |
| Creates a new shared library from the specified path. | |
| ~SharedLibrary () | |
| boost::filesystem::path const & | getPath () const |
| Retrieves the system path of the SharedLibrary. | |
| typedef void* PWToolBox::SharedLibrary::SymbolType |
The type of the symbol in the shared library when using Windows.
| typedef void*(*) PWToolBox::SharedLibrary::SymbolType() |
The type of the symbol in the shared library when using Linux.
| typedef HINSTANCE PWToolBox::SharedLibrary::HandleType |
The type of the handle to the shared library when using Windows.
| typedef void* PWToolBox::SharedLibrary::HandleType |
The type of the handle to the shared library when using Linux.
| PWToolBox::SharedLibrary::SharedLibrary | ( | boost::filesystem::path const & | path | ) |
Creates a new shared library from the specified path.
| path | The path of the shared library |
| InvalidArgumentException | Thrown when path does not exist |
| PWToolBox::SharedLibrary::~SharedLibrary | ( | ) |
| SymbolType PWToolBox::SharedLibrary::findSymbol | ( | std::string const & | symbol | ) |
Finds the symbol in the library.
| symbol | The symbol to load from the library. |
| SharedLibraryException | Thrown when the symbol wasn't found. |
| boost::filesystem::path const& PWToolBox::SharedLibrary::getPath | ( | ) | const [inline] |
1.5.1