DynamicLibrary - encapsulates the loading and unloading of dynamic libraries, typically used for loading ReaderWriter plug-ins.
More...
List of all members.
Detailed Description
DynamicLibrary - encapsulates the loading and unloading of dynamic libraries, typically used for loading ReaderWriter plug-ins.
Member Typedef Documentation
Constructor & Destructor Documentation
osgDB::DynamicLibrary::DynamicLibrary |
( |
| ) |
[inline, protected] |
disallow default constructor.
osgDB::DynamicLibrary::DynamicLibrary |
( |
const DynamicLibrary & |
| ) |
[inline, protected] |
disallow copy constructor.
osgDB::DynamicLibrary::DynamicLibrary |
( |
const std::string & |
name, |
|
|
HANDLE |
handle |
|
) |
| [protected] |
Disallow public construction so that users have to go through loadLibrary() above which returns NULL on failure, a valid DynamicLibrary object on success.
osgDB::DynamicLibrary::~DynamicLibrary |
( |
| ) |
[protected] |
Member Function Documentation
const std::string& osgDB::DynamicLibrary::getFullName |
( |
| ) |
const [inline] |
return name of library including full path to it.
HANDLE osgDB::DynamicLibrary::getHandle |
( |
| ) |
const [inline] |
return handle to .dso/.dll dynamic library itself.
static HANDLE osgDB::DynamicLibrary::getLibraryHandle |
( |
const std::string & |
libraryName | ) |
[static, protected] |
get handle to library file
const std::string& osgDB::DynamicLibrary::getName |
( |
| ) |
const [inline] |
return name of library stripped of path.
PROC_ADDRESS osgDB::DynamicLibrary::getProcAddress |
( |
const std::string & |
procName | ) |
|
return address of function located in library.
static DynamicLibrary* osgDB::DynamicLibrary::loadLibrary |
( |
const std::string & |
libraryName | ) |
[static] |
returns a pointer to a DynamicLibrary object on successfully opening of library returns NULL on failure.
Member Data Documentation
The documentation for this class was generated from the following file: