Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::OSXLibraryPeer Class Reference

#include <OSXLibraryPeer.h>

Inheritance diagram for VCF::OSXLibraryPeer:

VCF::LibraryPeer List of all members.

Public Member Functions

 OSXLibraryPeer ()
virtual ~OSXLibraryPeer ()
virtual void load (const String &libraryFilename)
 loads a dynamic library
virtual void * getFunction (const String &functionName)
 returns a pointer to the function named functionName.
virtual void unload ()
virtual OSHandleID getHandleID ()
 Returns an OS handle to the loaded library.

Protected Attributes

void * libHandle_
 This is either a pointer that dlopen() returned or a CFBundleRef.
bool handleIsBundle_

Constructor & Destructor Documentation

VCF::OSXLibraryPeer::OSXLibraryPeer  ) 
 

virtual VCF::OSXLibraryPeer::~OSXLibraryPeer  )  [virtual]
 


Member Function Documentation

virtual void* VCF::OSXLibraryPeer::getFunction const String functionName  )  [virtual]
 

returns a pointer to the function named functionName.

Parameters:
String the name of the function to get a pointer to
Returns:
void* a pointer to the function. Must be typcasted into a valid function pointer on the caller's side. Throws RuntimeException if a failure to load the library occurs

Implements VCF::LibraryPeer.

virtual OSHandleID VCF::OSXLibraryPeer::getHandleID  )  [virtual]
 

Returns an OS handle to the loaded library.

Implements VCF::LibraryPeer.

virtual void VCF::OSXLibraryPeer::load const String libraryFilename  )  [virtual]
 

loads a dynamic library

Implements VCF::LibraryPeer.

virtual void VCF::OSXLibraryPeer::unload  )  [virtual]
 

Implements VCF::LibraryPeer.


Member Data Documentation

bool VCF::OSXLibraryPeer::handleIsBundle_ [protected]
 

void* VCF::OSXLibraryPeer::libHandle_ [protected]
 

This is either a pointer that dlopen() returned or a CFBundleRef.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information