SharedLibrary Class Reference

#include <SharedLibrary.h>

List of all members.

Public Member Functions

Constructors
 SharedLibrary (const std::string &name, SharedLibraryHandle *handle, SharedLibraryPlatform *platform)
 Creates a utility wrapper around the handle given which is assumed to be a valid platform-dependent handle to a previously loaded shared library.
virtual ~SharedLibrary ()
Main usage interface
virtual void * getSymbol (const std::string &symbol)
virtual std::string getLastError ()
const std::string & getName () const

Protected Attributes

const std::string m_name
SharedLibraryHandlem_handle
SharedLibraryPlatformm_platform


Detailed Description

Definition at line 18 of file SharedLibrary.h.


Constructor & Destructor Documentation

SharedLibrary::SharedLibrary ( const std::string &  name,
SharedLibraryHandle handle,
SharedLibraryPlatform platform 
)

Creates a utility wrapper around the handle given which is assumed to be a valid platform-dependent handle to a previously loaded shared library.

Definition at line 14 of file SharedLibrary.cpp.

SharedLibrary::~SharedLibrary (  )  [virtual]

Definition at line 23 of file SharedLibrary.cpp.


Member Function Documentation

void * SharedLibrary::getSymbol ( const std::string &  symbol  )  [virtual]

Returns:
a reference to the given symbol in this SharedLibrary or NULL on error
Note:
if an error occurred, you may call getLastError to obtain a human-readable string describing the error

Definition at line 26 of file SharedLibrary.cpp.

std::string SharedLibrary::getLastError (  )  [virtual]

Returns:
a human-readable string describing the last error which occurred within this SharedLibrary

Definition at line 30 of file SharedLibrary.cpp.

const std::string& SharedLibrary::getName (  )  const [inline]

Returns:
the string used to find/load this SharedLibrary

Definition at line 57 of file SharedLibrary.h.


Member Data Documentation

const std::string SharedLibrary::m_name [protected]

Definition at line 65 of file SharedLibrary.h.

Definition at line 67 of file SharedLibrary.h.

Definition at line 68 of file SharedLibrary.h.


The documentation for this class was generated from the following files:

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6