CppDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions
cppdb::shared_object Class Reference

This class allows to load and unload shared objects in simple and exception safe way. More...

#include <cppdb/shared_object.h>

Inheritance diagram for cppdb::shared_object:
cppdb::ref_counted

List of all members.

Public Member Functions

void * safe_sym (std::string const &name)
void * sym (std::string const &name)
template<typename T >
bool resolve (std::string const &s, T *&v)
template<typename T >
void safe_resolve (std::string const &s, T *&v)

Static Public Member Functions

static ref_ptr< shared_objectopen (std::string const &name)

Detailed Description

This class allows to load and unload shared objects in simple and exception safe way.


Member Function Documentation

static ref_ptr<shared_object> cppdb::shared_object::open ( std::string const &  name) [static]

Load shared object, returns empty pointer if the object does not exits or not loadable

template<typename T >
bool cppdb::shared_object::resolve ( std::string const &  s,
T *&  v 
) [inline]

Resolve symbol name and assign it to v, returns false if the symbol can't be resolved

template<typename T >
void cppdb::shared_object::safe_resolve ( std::string const &  s,
T *&  v 
) [inline]

Resolve symbol name and assign it to v, throws cppdb_error if the symbol can't be resolved

void* cppdb::shared_object::safe_sym ( std::string const &  name)

Resolve symbol name and return pointer on it, throws cppdb_error if the symbol can't be resolved

void* cppdb::shared_object::sym ( std::string const &  name)

Resolve symbol name and return pointer on it, returns NULL if the symbol can't be resolved


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator