Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXAUTODLL Class Reference

Auto DLL wraps a library module handle but also owns it; thus, the library module will automatically be unloaded when auto-dll is destroyed. More...

#include <FXDLL.h>

Inheritance diagram for FX::FXAUTODLL:
FX::FXDLL

List of all members.

Public Member Functions

 FXAUTODLL (const FXString &nm)
 Initialize by loading given library name.
 ~FXAUTODLL ()
 Unload library if we have one.
- Public Member Functions inherited from FX::FXDLL
 FXDLL ()
 Construct with no handle.
 FXDLL (void *h)
 Construct with existing handle.
 FXDLL (const FXDLL &org)
 Construct copy from original.
FXString name () const
 Return the name of the library module.
void * handle () const
 Return library module handle.
FXbool loaded () const
 True if library was loaded.
FXbool load (const FXString &nm)
 Load the library module from the name.
void unload ()
 Unload the library module.
void * address (const FXchar *sym) const
 Return the address of the symbol in this library module.
void * address (const FXString &sym) const

Additional Inherited Members

- Static Public Member Functions inherited from FX::FXDLL
static FXString symbol (void *addr)
 Return the symbol name of the given address.
static FXString name (void *addr)
 Return the name of the library module containing the address.
static FXDLL dll (void *addr)
 Find DLL containing symbol.
static FXDLL dll ()
 Find DLL of ourselves.
static FXString error ()
 Return error message if error occurred loading the library module.

Detailed Description

Auto DLL wraps a library module handle but also owns it; thus, the library module will automatically be unloaded when auto-dll is destroyed.


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

Copyright © 1997-2016 Jeroen van der Zijp