- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::USharedLib Class Reference

Loads a dynamic link library at runtime. More...

#include <usharedlib.hpp>

Inheritance diagram for ufo::USharedLib:

ufo::UObject ufo::UCollectable List of all members.

Public Types

enum  ldmode_t { bindNow, bindLazy }

Public Member Functions

 USharedLib (const std::string &fileName, ldmode_t mode=bindLazy)
std::string getFileName () const
void * symbol (const std::string &sym)
void * operator[] (const std::string &sym)
bool load (const std::string &fileName, ldmode_t mode=bindLazy)
void unload ()

Detailed Description

Loads a dynamic link library at runtime.

Author:
Johannes Schmidt


Member Enumeration Documentation

enum ufo::USharedLib::ldmode_t
 

Function binding mode

Enumeration values:
bindLazy  Bind lazy (on first call)


Member Function Documentation

std::string ufo::USharedLib::getFileName  )  const
 

Returns the file name for the loaded shared lib.

bool ufo::USharedLib::load const std::string &  fileName,
ldmode_t  mode = bindLazy
 

Loads the given shared library.

void* ufo::USharedLib::operator[] const std::string &  sym  )  [inline]
 

Loads the given symbol from the loaded object file.

void* ufo::USharedLib::symbol const std::string &  sym  ) 
 

Loads the given symbol from the loaded object file.

void ufo::USharedLib::unload  ) 
 

Unloads the loaded library (if any).


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt