MyGUI::DynLib Class Reference

Resource holding data about a dynamic library. More...

#include <MyGUI_DynLib.h>

Public Member Functions

void load ()
void unload ()
std::string getName (void) const
 Get the name of the library.
void * getSymbol (const std::string &strName) const throw ()

Protected Member Functions

 DynLib (const std::string &name)
 ~DynLib ()
std::string dynlibError (void)
 Gets the last loading error.

Protected Attributes

std::string mName
 Name of library.
hInstance mInstance
 Handle to the loaded library.

Friends

class DynLibManager

Detailed Description

Resource holding data about a dynamic library.

Remarks:
This class holds the data required to get symbols from libraries loaded at run-time (i.e. from DLL's for so's)

Definition at line 62 of file MyGUI_DynLib.h.


Constructor & Destructor Documentation

MyGUI::DynLib::DynLib ( const std::string &  name  )  [protected]

Definition at line 36 of file MyGUI_DynLib.cpp.

MyGUI::DynLib::~DynLib (  )  [protected]

Definition at line 43 of file MyGUI_DynLib.cpp.


Member Function Documentation

std::string MyGUI::DynLib::dynlibError ( void   )  [protected]

Gets the last loading error.

Definition at line 87 of file MyGUI_DynLib.cpp.

std::string MyGUI::DynLib::getName ( void   )  const [inline]

Get the name of the library.

Definition at line 82 of file MyGUI_DynLib.h.

void * MyGUI::DynLib::getSymbol ( const std::string &  strName  )  const throw ()

Returns the address of the given symbol from the loaded library.

Parameters:
strName The name of the symbol to search for
Returns:
If the function succeeds, the returned value is a handle to the symbol. If the function fails, the returned value is nullptr.

Definition at line 77 of file MyGUI_DynLib.cpp.

void MyGUI::DynLib::load (  ) 

Load the library

Definition at line 48 of file MyGUI_DynLib.cpp.

void MyGUI::DynLib::unload (  ) 

Unload the library

Definition at line 63 of file MyGUI_DynLib.cpp.


Friends And Related Function Documentation

friend class DynLibManager [friend]

Definition at line 64 of file MyGUI_DynLib.h.


Field Documentation

Handle to the loaded library.

Definition at line 104 of file MyGUI_DynLib.h.

std::string MyGUI::DynLib::mName [protected]

Name of library.

Definition at line 101 of file MyGUI_DynLib.h.


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

Generated on 5 Dec 2009 for MyGUI by  doxygen 1.6.1