|
LibreOffice
LibreOffice 26.2 SDK C/C++ API Reference
|
The ORealDynamicLoader is an implementation helper class for the template loader ODynamicLoader. More...
#include <dynload.hxx>
Public Member Functions | |
| sal_uInt32 | acquire () |
| increase the reference count. | |
| sal_uInt32 | release () |
| decrease the reference count and delete the last instance. | |
| void * | getApi () const |
| returns a pointer to the initialized API function structure. | |
Static Public Member Functions | |
| static ORealDynamicLoader * | newInstance (ORealDynamicLoader **ppSetToZeroInDestructor, const ::rtl::OUString &strModuleName, const ::rtl::OUString &strInitFunction) |
| initializes the loader, loads the library and call the initialization function. | |
Protected Member Functions | |
| ORealDynamicLoader (ORealDynamicLoader **ppSetToZeroInDestructor, const ::rtl::OUString &strModuleName, const ::rtl::OUString &strInitFunction, void *pApi, oslModule pModule) | |
| Constructor. | |
| virtual | ~ORealDynamicLoader () |
| Destructor, try to unload the library. | |
Protected Attributes | |
| void * | m_pApi |
| points to the structure with the initialized API function pointers. | |
| sal_uInt32 | m_refCount |
| stores the reference count. | |
| oslModule | m_pModule |
| stores the library handle. | |
| ::rtl::OUString | m_strModuleName |
| stores the library name. | |
| ::rtl::OUString | m_strInitFunction |
| stores the name of the initialization function. | |
| ORealDynamicLoader ** | ppSetToZeroInDestructor |
| stores a pointer to itself, which must be reset in the destructor to signal that the loader is invalid. | |
The ORealDynamicLoader is an implementation helper class for the template loader ODynamicLoader.
|
protected |
Constructor.
| ppSetToZeroInDestructor | points to the loader instance which must be set to NULL if the loader will be destroyed. |
| strModuleName | specifies the library name. |
| strInitFunction | specifies the name of the initialization function. |
| pApi | points to a structure with the initialized API function pointers. |
| pModule | points to the loaded library handle. |
|
protectedvirtual |
Destructor, try to unload the library.
| sal_uInt32 salhelper::ORealDynamicLoader::acquire | ( | ) |
increase the reference count.
| void * salhelper::ORealDynamicLoader::getApi | ( | ) | const |
returns a pointer to the initialized API function structure.
|
static |
initializes the loader, loads the library and call the initialization function.
| ppSetToZeroInDestructor | points to the loader instance which must be set to NULL if the loader will be destroyed. |
| strModuleName | specifies the library name. |
| strInitFunction | specifies the name of the initialization function. |
| sal_uInt32 salhelper::ORealDynamicLoader::release | ( | ) |
decrease the reference count and delete the last instance.
|
protected |
points to the structure with the initialized API function pointers.
|
protected |
stores the library handle.
|
protected |
stores the reference count.
|
protected |
stores the name of the initialization function.
|
protected |
stores the library name.
|
protected |
stores a pointer to itself, which must be reset in the destructor to signal that the loader is invalid.