|
C12Adapter Opensource C++ Interface
|
Wrapper for shared object (dll) API. More...

Public Types | |
| typedef void(* | GlobalProcedureType) () |
| Generic procedure type. More... | |
Public Member Functions | |
| ~MDynamicLibrary () | |
| Destructor unloads the shared object from the process memory space (in fact, the behavior depends on OS: for instance Windows just decrements a reference counter for this DLL and unloads it only if the counter is equal to zero) | |
| const MStdString & | GetName () const |
| Returns name of the shared object. | |
| MStdString | GetPath () const |
| Returns system path to the shared object. | |
| GlobalProcedureType | GetProcedureAddress (MConstChars procedureName) |
| Get the address of the global procedure within the dynamic library. More... | |
Static Public Member Functions | |
| static MDynamicLibrary * | Load (const MStdString &name) |
| Loads the specified MeteringSDK library into the address space of the current process. More... | |
| static MDynamicLibrary * | LoadExact (const MStdString &name, const MStdString &shortName) |
| Loads the specified shared object into the address space of the current process. | |
| static void | EnsureLibraryIsLoaded (const MStdString &name) |
| Make sure the given library is loaded. More... | |
Wrapper for shared object (dll) API.
| typedef void(* MDynamicLibrary::GlobalProcedureType) () |
Generic procedure type.
|
static |
Make sure the given library is loaded.
| name | If library with this name is not already loaded it will be loaded. |
| GlobalProcedureType MDynamicLibrary::GetProcedureAddress | ( | MConstChars | procedureName | ) |
Get the address of the global procedure within the dynamic library.
|
static |
Loads the specified MeteringSDK library into the address space of the current process.
The Load function translates its parameter by appending the following information: underline vc[u][d]|cb .dll.