Overview | Namespace | Class | Index | Help |
PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
PROTECTED MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
virtual | abstract | interface | template |
YES | NO | NO | NO |
Methods |
|
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 Methods |
|
static ORealDynamicLoader * newInstance( ORealDynamicLoader * * ppSetToZeroInDestructor, const ::rtl::OUString & strModuleName, const ::rtl::OUString & strInitFunction ); |
initializes the loader, loads the library and call the initialization fucntion. |
Methods |
|
ORealDynamicLoader( ORealDynamicLoader * * ppSetToZeroInDestructor, const ::rtl::OUString & strModuleName, const ::rtl::OUString & strInitFunction, void * pApi, oslModule pModule ); |
Constructor. |
virtual ~ORealDynamicLoader( ); |
Destructor, try to unload the library. |
Data |
|
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. |
Copyright © 2010 Sun Microsystems, Inc.