ALBA
Static Public Member Functions | Protected Member Functions | List of all members
albaDynamicLoader Class Reference

#include <albaDynamicLoader.h>

Inheritance diagram for albaDynamicLoader:
Inheritance graph
[legend]
Collaboration diagram for albaDynamicLoader:
Collaboration graph
[legend]

Static Public Member Functions

static LibHandle OpenLibrary (const char *)
 
static int CloseLibrary (LibHandle)
 
static void * GetSymbolAddress (LibHandle, const char *)
 
static const char * LibPrefix ()
 
static const char * LibExtension ()
 
static const char * LastError ()
 

Protected Member Functions

 albaDynamicLoader ()
 
 ~albaDynamicLoader ()
 

Detailed Description

Portable loading of dynamic libraries or dll's.

albaDynamicLoader provides a portable interface to loading dynamic libraries or dll's into a process. Beware this class include albaWIN32.h and thus should be included before any other not including this header file, since MS VS6.0 seems to have a bug which make macros and inline functions defined before of this class to be mis-compiled.

Definition at line 51 of file albaDynamicLoader.h.

Constructor & Destructor Documentation

◆ albaDynamicLoader()

albaDynamicLoader::albaDynamicLoader ( )
inlineprotected

Definition at line 76 of file albaDynamicLoader.h.

◆ ~albaDynamicLoader()

albaDynamicLoader::~albaDynamicLoader ( )
inlineprotected

Definition at line 77 of file albaDynamicLoader.h.

Member Function Documentation

◆ OpenLibrary()

static LibHandle albaDynamicLoader::OpenLibrary ( const char *  )
static

Load a dynamic library into the current process.

The returned LibHandle can be used to access the symbols in the library.

◆ CloseLibrary()

static int albaDynamicLoader::CloseLibrary ( LibHandle  )
static

Attempt to detach a dynamic library from the process.

A value of true is returned if it is sucessful.

◆ GetSymbolAddress()

static void * albaDynamicLoader::GetSymbolAddress ( LibHandle  ,
const char *   
)
static

Find the address of the symbol in the given library.

◆ LibPrefix()

static const char * albaDynamicLoader::LibPrefix ( )
static

Return the library prefix for the given architecture.

◆ LibExtension()

static const char * albaDynamicLoader::LibExtension ( )
static

Return the library extension for the given architecture.

◆ LastError()

static const char * albaDynamicLoader::LastError ( )
static

Return the last error produced from a calls made on this class.


The documentation for this class was generated from the following file: