Lunchbox  1.8.0
Public Member Functions | List of all members
lunchbox::DSO Class Reference

Helper to access dynamic shared objects (DSO) More...

#include <dso.h>

+ Inheritance diagram for lunchbox::DSO:
+ Collaboration diagram for lunchbox::DSO:

Public Member Functions

 DSO ()
 Construct a new dynamic shared object.
 DSO (const std::string &name)
 Construct and initialize a dynamic shared object.
 ~DSO ()
 Destruct this DSO handle.
bool open (const std::string &fileName)
 Open a dynamic shared object.
void close ()
 Close the DSO, invalidates retrieved function pointers.
void * getFunctionPointer (const std::string &functionName)
template<class F >
getFunctionPointer (const std::string &func)
bool isOpen () const

Detailed Description

Helper to access dynamic shared objects (DSO)

Definition at line 31 of file dso.h.

Constructor & Destructor Documentation

lunchbox::DSO::DSO ( )

Construct a new dynamic shared object.

Version
1.0
lunchbox::DSO::DSO ( const std::string &  name)

Construct and initialize a dynamic shared object.

Version
1.7.1
lunchbox::DSO::~DSO ( )

Destruct this DSO handle.

Version
1.0

Member Function Documentation

void lunchbox::DSO::close ( )

Close the DSO, invalidates retrieved function pointers.

Version
1.0
void* lunchbox::DSO::getFunctionPointer ( const std::string &  functionName)
Returns
a function pointer in the DSO, or 0 if the function is not exported by the DSO.
Version
1.0
template<class F >
F lunchbox::DSO::getFunctionPointer ( const std::string &  func)
inline
Returns
a typed function pointer in the DSO, or 0 if the function is not exported by the DSO.
Version
1.7.1

Definition at line 70 of file dso.h.

References getFunctionPointer().

Referenced by getFunctionPointer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool lunchbox::DSO::isOpen ( ) const
Returns
true if the DSO is loaded.
Version
1.0
bool lunchbox::DSO::open ( const std::string &  fileName)

Open a dynamic shared object.

Parameters
fileNameThe file name of the DSO.
Returns
true if the DSO was opened, false upon error.
Version
1.0

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