Helper to access dynamic shared objects (DSO)  
 More...
#include <dso.h>
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 >  | 
| 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
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 
 
 
 
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   | 
  
 
 
      
        
          | 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
 - 
  
    | fileName | The 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: