The ORealDynamicLoader is an implementation helper class for the template loader ODynamicLoader.  
 More...
#include <dynload.hxx>
|  | 
| 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. 
 | 
The ORealDynamicLoader is an implementation helper class for the template loader ODynamicLoader. 
◆ ORealDynamicLoader()
Constructor. 
- Parameters
- 
  
    | 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. |  
 
 
 
◆ ~ORealDynamicLoader()
  
  | 
        
          | virtual salhelper::ORealDynamicLoader::~ORealDynamicLoader | ( |  | ) |  |  | protectedvirtual | 
 
Destructor, try to unload the library. 
 
 
◆ acquire()
      
        
          | sal_uInt32 salhelper::ORealDynamicLoader::acquire | ( |  | ) |  | 
      
 
increase the reference count. 
 
 
◆ getApi()
      
        
          | void * salhelper::ORealDynamicLoader::getApi | ( |  | ) | const | 
      
 
returns a pointer to the initialized API function structure. 
 
 
◆ newInstance()
initializes the loader, loads the library and call the initialization function. 
- Parameters
- 
  
    | 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. |  
 
 
 
◆ release()
      
        
          | sal_uInt32 salhelper::ORealDynamicLoader::release | ( |  | ) |  | 
      
 
decrease the reference count and delete the last instance. 
 
 
◆ m_pApi
  
  | 
        
          | void* salhelper::ORealDynamicLoader::m_pApi |  | protected | 
 
points to the structure with the initialized API function pointers. 
 
 
◆ m_pModule
  
  | 
        
          | oslModule salhelper::ORealDynamicLoader::m_pModule |  | protected | 
 
stores the library handle. 
 
 
◆ m_refCount
  
  | 
        
          | sal_uInt32 salhelper::ORealDynamicLoader::m_refCount |  | protected | 
 
stores the reference count. 
 
 
◆ m_strInitFunction
stores the name of the initialization function. 
 
 
◆ m_strModuleName
◆ ppSetToZeroInDestructor
stores a pointer to itself, which must be reset in the destructor to signal that the loader is invalid. 
 
 
The documentation for this class was generated from the following file: