DynamicLibrary Struct Reference

Wraps a dynamically loaded system library. More...

#include <DynamicLibrary.h>

Collaboration diagram for DynamicLibrary:

Collaboration graph
[legend]
List of all members.

Public Types

typedef void(*) fProc ()

Public Member Functions

void construct (int version=1)
 DynamicLibrary (const char *dllName)
 Constructor, loads the library specified by dllName.
 DynamicLibrary (const char *dllName, int version)
 Constructor, loads the library specified by dllName and version, version is only used on linux.
 DynamicLibrary (const char *dllName, const char *pathHint, int version=1)
 Constructor, loads the library specified by dllName, using subdirectory hint.
fProc getProc (const char *procName)
 get a procedure address from the library
std::string getVersionStr ()
 get version string, returns resource version string of DLL on win32, and full path of library on linux
std::string getName ()
 return loaded library name

Public Attributes

void * mLibhandle
std::string name
const char * m_pathHint

Static Public Attributes

static std::string arrPaths []

Detailed Description

Wraps a dynamically loaded system library.

Dynamiclibrary loads a DLL or windows or .so on linux/others, specified by its basename, like "winscard" or "pcsclite". Somewhat hackish and does not really belong here


The documentation for this struct was generated from the following files:
Generated on Fri Oct 31 12:29:39 2008 for Cardlib reference by  doxygen 1.5.1