24#ifndef INCLUDED_SALHELPER_DYNLOAD_HXX
25#define INCLUDED_SALHELPER_DYNLOAD_HXX
49 const ::rtl::OUString& strModuleName,
50 const ::rtl::OUString& strInitFunction );
71 const ::rtl::OUString& strModuleName,
72 const ::rtl::OUString& strInitFunction,
125 const ::rtl::OUString& strInitFunction )
#define SALHELPER_DLLPUBLIC
Definition salhelperdllapi.h:32
void * oslModule
Definition module.h:59
Definition condition.hxx:34
The ORealDynamicLoader is an implementation helper class for the template loader ODynamicLoader.
Definition dynload.hxx:38
sal_uInt32 release()
decrease the reference count and delete the last instance.
::rtl::OUString m_strModuleName
stores the library name.
Definition dynload.hxx:86
static ORealDynamicLoader * newInstance(ORealDynamicLoader **ppSetToZeroInDestructor, const ::rtl::OUString &strModuleName, const ::rtl::OUString &strInitFunction)
initializes the loader, loads the library and call the initialization function.
oslModule m_pModule
stores the library handle.
Definition dynload.hxx:84
void * m_pApi
points to the structure with the initialized API function pointers.
Definition dynload.hxx:80
sal_uInt32 m_refCount
stores the reference count.
Definition dynload.hxx:82
void * getApi() const
returns a pointer to the initialized API function structure.
ORealDynamicLoader(ORealDynamicLoader **ppSetToZeroInDestructor, const ::rtl::OUString &strModuleName, const ::rtl::OUString &strInitFunction, void *pApi, oslModule pModule)
Constructor.
::rtl::OUString m_strInitFunction
stores the name of the initialization function.
Definition dynload.hxx:88
virtual ~ORealDynamicLoader()
Destructor, try to unload the library.
sal_uInt32 acquire()
increase the reference count.
ORealDynamicLoader ** ppSetToZeroInDestructor
stores a pointer to itself, which must be reset in the destructor to signal that the loader is invali...
Definition dynload.hxx:92
The ODynamicLoader provides a special load on call mechanism for dynamic libraries which support a C-...
Definition dynload.hxx:110
~ODynamicLoader()
Destructor, decrease the reference count and unload the library if it is the last instance.
Definition dynload.hxx:151
ODynamicLoader(const ::rtl::OUString &strModuleName, const ::rtl::OUString &strInitFunction)
Constructor, loads the library if necessary otherwise the reference count will be increased.
Definition dynload.hxx:124
API * getApi() const
returns a pointer to the initialized API function structure.
Definition dynload.hxx:178
ODynamicLoader(const ODynamicLoader< API > &toCopy)
Copy constructor.
Definition dynload.hxx:143
API * operator->() const
cast operator, which cast to a pointer with the initialized API function structure.
Definition dynload.hxx:184
ORealDynamicLoader * m_pLoader
Definition dynload.hxx:198
ODynamicLoader()
Default constructor.
Definition dynload.hxx:113
bool isLoaded() const
checks if the loader works on a loaded and initialized library.
Definition dynload.hxx:190
ODynamicLoader< API > & operator=(const ODynamicLoader< API > &toAssign)
Assign operator.
Definition dynload.hxx:159
static ORealDynamicLoader * m_pStaticLoader
stores the real loader helper instance
Definition dynload.hxx:197
This String class provides base functionality for C++ like Unicode character array handling.
Definition ustring.hxx:171