SDL++
C++wrapperfortheSDLlibrary.

sdl::misc::SharedObject Struct Reference

Represents a shared object. More...

#include <SharedObject.h>

Collaboration diagram for sdl::misc::SharedObject:

List of all members.

Public Member Functions

 SharedObject (const string &fileName)
 ~SharedObject ()
void * loadFunction (const string &name)

Detailed Description

Represents a shared object.

Definition at line 35 of file SharedObject.h.


Constructor & Destructor Documentation

sdl::misc::SharedObject::SharedObject ( const string &  fileName) [inline]

Loads a shared object from a file.

Parameters:
fileNameThe file from which to load the shared object.
Exceptions:
runtime_errorThrows a runtime_error if unable to load shared object.

Definition at line 43 of file SharedObject.h.

sdl::misc::SharedObject::~SharedObject ( ) [inline]

Unloads the shared object.

Definition at line 51 of file SharedObject.h.


Member Function Documentation

void* sdl::misc::SharedObject::loadFunction ( const string &  name) [inline]

Returns the address of a function in a loaded shared object.

Parameters:
nameThe function's name.
Returns:
The pointer to the function on success, NULL otherwise.
Exceptions:
runtime_errorThrows a runtime_error if unable to load function.

Definition at line 62 of file SharedObject.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs