Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: salhelper ::

class ORealDynamicLoader


Base Classes
None.
Known Derived Classes
None.

virtual abstract interface template
YES NO NO NO
Summary
The ORealDynamicLoader is an implementation helper class for the template loader ODynamicLoader.
File
dynload.hxx

Public Members

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.

Protected Members

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.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.