Inheritance diagram for osgDB::DynamicLibrary:
Public Types | |
typedef void * | HANDLE |
typedef void * | PROC_ADDRESS |
Public Member Functions | |
const std::string & | getName () const |
const std::string & | getFullName () const |
HANDLE | getHandle () const |
PROC_ADDRESS | getProcAddress (const std::string &procName) |
Static Public Member Functions | |
DynamicLibrary * | loadLibrary (const std::string &libraryName) |
Protected Member Functions | |
DynamicLibrary () | |
DynamicLibrary (const DynamicLibrary &) | |
DynamicLibrary & | operator= (const DynamicLibrary &) |
DynamicLibrary (const std::string &name, HANDLE handle) | |
~DynamicLibrary () | |
Static Protected Member Functions | |
HANDLE | getLibraryHandle (const std::string &libraryName) |
Protected Attributes | |
HANDLE | _handle |
std::string | _name |
std::string | _fullName |
|
|
|
|
|
disallow default constructor. |
|
disallow copy constructor. |
|
Disallow public construction so that users have to go through loadLibrary() above which returns NULL on failure, a valid DynamicLibrary object on success. |
|
|
|
return name of library including full path to it. |
|
return handle to .dso/.dll dynamic library itself. |
|
get handle to library file |
|
return name of library stripped of path. |
|
return address of function located in library. |
|
returns a pointer to a DynamicLibrary object on successfully opening of library returns NULL on failure. |
|
disallow copy operator. |
|
|
|
|
|
|