This class allows to load and unload shared objects in simple and exception safe way. More...
#include <cppdb/shared_object.h>
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_object > | open (std::string const &name) |
This class allows to load and unload shared objects in simple and exception safe way.
| 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
| 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
| 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
1.7.6.1