#include <DynamicLibrary.h>
|
| const agx::String & | getFullName () const |
| |
| HANDLE | getHandle () const |
| |
| const agx::String & | getName () const |
| |
| PROC_ADDRESS | getProcAddress (const agx::String &procName) |
| |
| | Referenced () |
| | Default constructor.
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting.
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match.
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test.
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object.
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
Definition at line 32 of file DynamicLibrary.h.
◆ HANDLE
◆ PROC_ADDRESS
◆ DynamicLibrary() [1/3]
| agx::DynamicLibrary::DynamicLibrary |
( |
| ) |
|
|
inlineprotected |
◆ DynamicLibrary() [2/3]
◆ DynamicLibrary() [3/3]
Disallow public construction so that users have to go through loadLibrary() above which returns nullptr on failure, a valid DynamicLibrary object on success.
◆ ~DynamicLibrary()
| virtual agx::DynamicLibrary::~DynamicLibrary |
( |
| ) |
|
|
protectedvirtual |
◆ getFullName()
| const agx::String & agx::DynamicLibrary::getFullName |
( |
| ) |
const |
|
inline |
◆ getHandle()
| HANDLE agx::DynamicLibrary::getHandle |
( |
| ) |
const |
|
inline |
- Returns
- Handle to the loaded dynamic library (.dso/.dll).
Definition at line 62 of file DynamicLibrary.h.
◆ getLibraryHandle()
| static HANDLE agx::DynamicLibrary::getLibraryHandle |
( |
const agx::String & |
libraryName | ) |
|
|
staticprotected |
get handle to library file
◆ getName()
| const agx::String & agx::DynamicLibrary::getName |
( |
| ) |
const |
|
inline |
◆ getProcAddress()
- Parameters
-
| procName | - Name of the function that should be located. |
- Returns
- Address of the named function located in library.
◆ loadLibrary()
Load a named library (without file extension).
Library should be located in one of the directories in the given FilePathContainer.
- Parameters
-
| libraryName | - Name of dynamic library that should be loaded (without extension). |
| fp | - FilePathContainer containing list of paths where the library will be searched. |
- Returns
- Pointer to a DynamicLibrary object on successfully opening of library returns nullptr on failure.
◆ operator==()
◆ m_fullName
◆ m_handle
| HANDLE agx::DynamicLibrary::m_handle |
|
protected |
◆ m_name
The documentation for this class was generated from the following file: