UDK 3.2.7 C/C++ API Reference
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
salhelper::ORealDynamicLoader Class Reference

The ORealDynamicLoader is an implementation helper class for the template loader ODynamicLoader. More...

#include <dynload.hxx>

List of all members.

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 poiner to the initialized API function structure.

Static Public Member Functions

static ORealDynamicLoadernewInstance (ORealDynamicLoader **ppSetToZeroInDestructor, const ::rtl::OUString &strModuleName, const ::rtl::OUString &strInitFunction)
 initializes the loader, loads the library and call the initialization fucntion.

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

Detailed Description

The ORealDynamicLoader is an implementation helper class for the template loader ODynamicLoader.


Constructor & Destructor Documentation

salhelper::ORealDynamicLoader::ORealDynamicLoader ( ORealDynamicLoader **  ppSetToZeroInDestructor,
const ::rtl::OUString strModuleName,
const ::rtl::OUString strInitFunction,
void *  pApi,
oslModule  pModule 
) [protected]

Constructor.

Parameters:
ppSetToZeroInDestructorpoints to the loader instance which must be set to NULL if the loader will be destroyed.
strModuleNamespecifies the library name.
strInitFunctionspecifies the name of the initialization function.
pApipoints to a structure with the initialized API function pointers.
pModulepoints to the loaded library handle.
virtual salhelper::ORealDynamicLoader::~ORealDynamicLoader ( ) [protected, virtual]

Destructor, try to unload the library.


Member Function Documentation

sal_uInt32 salhelper::ORealDynamicLoader::acquire ( )

increase the reference count.

void* salhelper::ORealDynamicLoader::getApi ( ) const

returns a poiner to the initialized API function structure.

static ORealDynamicLoader* salhelper::ORealDynamicLoader::newInstance ( ORealDynamicLoader **  ppSetToZeroInDestructor,
const ::rtl::OUString strModuleName,
const ::rtl::OUString strInitFunction 
) [static]

initializes the loader, loads the library and call the initialization fucntion.

Parameters:
ppSetToZeroInDestructorpoints to the loader instance which must be set to NULL if the loader will be destroyed.
strModuleNamespecifies the library name.
strInitFunctionspecifies the name of the initialization function.
sal_uInt32 salhelper::ORealDynamicLoader::release ( )

decrease the reference count and delete the last instance.


Member Data Documentation

points to the structure with the initialzed API function pointers.

stores the library handle.

stores the reference count.

stores the name of the initialization function.

stores the library name.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines