(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: 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 OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.