|
0 A.D. | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
| Field Summary | |
private void* |
m_Handle
|
private const char* |
m_Name
|
| Constructor Summary | |
DllLoader( const char* name )
Prepare the DLL loader. |
|
~DllLoader()
|
|
| Method Summary | |
bool |
IsLoaded() const
Check whether the library has been loaded successfully. |
bool |
LoadDLL()
Attempt to load and initialise the library, if not already. |
void |
LoadSymbol( const char* name, T& fptr ) const
Attempt to load a named symbol from the library. |
private void |
LoadSymbolInternal( const char* name, void** fptr ) const
|
void |
Unload()
Unload the library, if it has been loaded already. |
| Field Detail |
private void* m_Handle;
private const char* m_Name;
| Constructor Detail |
public DllLoader( const char* name );
name - base name of the library (from which we'll derive
"name.dll", "libname_dbg.so", etc). Pointer must remain valid for
this object's lifetime (which is fine if you just use a string literal).public ~DllLoader();
| Method Detail |
public bool IsLoaded() const;
LoadDLL has been called; otherwise returns the same as
LoadDLL did.
public bool LoadDLL();
public void LoadSymbol( const char* name, T& fptr ) const;
IsLoaded is
false, throws PSERROR_DllLoader_DllNotLoaded. If it cannot load the
symbol, throws PSERROR_DllLoader_SymbolNotFound. In both cases, sets fptr
to NULL. Otherwise, fptr is set to point to the loaded function.
PSERROR_DllLoaderprivate void LoadSymbolInternal( const char* name, void** fptr ) const;
public void Unload();
|
0 A.D.
Generated on September 04, 2007 at 18:13 CppDoc v2.4.0 |
|||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||