VCF::Library Class Reference
A Library represents a DLL (Dynamic Linked Library) or SO (Shared Object). More...
#include <vcf/FoundationKit/Library.h>
Inheritance diagram for VCF::Library:

Public Member Functions | |
| Library (const String &libraryName="", const bool &autoUnloadLib=false) | |
| virtual | ~Library () |
| void | load (const String &libraryFilename) |
| Dynamically loads the DLL/SO specified by the libraryFilename argument. | |
| void | unload () |
| unloads the DLL/SO | |
| void * | getFunction (const String &functionName) |
| returns an exported function of the library | |
| void | init () |
| initializes the library object | |
Detailed Description
A Library represents a DLL (Dynamic Linked Library) or SO (Shared Object).It can be created by passing in a fully qualified file name to the constructor. The specified DLL/SO will then be dynamically loaded (and unloaded when the Library obejct is destroyed if autoUnloadLib is true). Alternatively you may call the load() method which will do the same.
Constructor & Destructor Documentation
|
||||||||||||
|
|
|
|
|
Member Function Documentation
|
|
returns an exported function of the library
|
|
|
initializes the library object
|
|
|
Dynamically loads the DLL/SO specified by the libraryFilename argument. The default behaviour is to just load the library, assuming the libraryFilename is a path to the library. However, we are now going to get a tad fancier! If the libraryFilename is a directory, then we will try and locate the Info.plist/Info.xml file, read it, and, based on the info we get, attempt to use this to open the library inside.
|
|
|
unloads the DLL/SO
|
The documentation for this class was generated from the following file:
- vcf/FoundationKit/Library.h
