SharedLibraryPlatform Class Reference

#include <SharedLibraryPlatform.h>

Inheritance diagram for SharedLibraryPlatform:

SharedLibraryPlatformPosix

List of all members.

Public Member Functions

Constructors
 SharedLibraryPlatform ()
virtual ~SharedLibraryPlatform ()
Main usage interface
virtual SharedLibraryHandleload (const std::string &name, int openFlags=0)=0
 Attempts to load/initialize the given shared library, optionally specifying the given open flags to the platform-dependent loader.
virtual bool unload (SharedLibraryHandle *handle)=0
 Attempts to unload the given shared library.
Accessors
virtual void * getSymbol (SharedLibraryHandle *handle, const std::string &symbol)=0
virtual std::string getLastError ()=0


Detailed Description

Definition at line 17 of file SharedLibraryPlatform.h.


Constructor & Destructor Documentation

SharedLibraryPlatform::SharedLibraryPlatform (  )  [inline]

Definition at line 22 of file SharedLibraryPlatform.h.

virtual SharedLibraryPlatform::~SharedLibraryPlatform (  )  [inline, virtual]

Definition at line 25 of file SharedLibraryPlatform.h.


Member Function Documentation

virtual SharedLibraryHandle* SharedLibraryPlatform::load ( const std::string &  name,
int  openFlags = 0 
) [pure virtual]

Attempts to load/initialize the given shared library, optionally specifying the given open flags to the platform-dependent loader.

Returns:
a platform-dependent handle to the library on success or NULL on failure

Implemented in SharedLibraryPlatformPosix.

virtual bool SharedLibraryPlatform::unload ( SharedLibraryHandle handle  )  [pure virtual]

Attempts to unload the given shared library.

Returns:
true on success, false otherwise

Implemented in SharedLibraryPlatformPosix.

virtual void* SharedLibraryPlatform::getSymbol ( SharedLibraryHandle handle,
const std::string &  symbol 
) [pure 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

Implemented in SharedLibraryPlatformPosix.

virtual std::string SharedLibraryPlatform::getLastError (  )  [pure virtual]

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

Implemented in SharedLibraryPlatformPosix.


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

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6