1 #ifndef ldpk_plugin_loader_sdv 2 #define ldpk_plugin_loader_sdv 4 #include <ldpk/tde4_ld_plugin.h> 22 tde4ldp_create_fct_t* _create_plugin;
23 tde4ldp_destroy_fct_t* _destroy_plugin;
29 plugin_loader(
bool verbose =
true):_create_plugin(0),_destroy_plugin(0),_model(0),_verbose(verbose),_mode(RTLD_LAZY)
46 {
return _create_plugin; }
49 {
return _destroy_plugin; }
void open_plugin(const std::string &path)
Load and link plugin, will throw exceptions on fail.
Definition: ldpk_plugin_loader.C:9
tde4_ld_plugin * get_model()
Pointer to distortion model base class.
Definition: ldpk_plugin_loader.h:42
A simple plugin loader for testing and debugging purposes.
Definition: ldpk_plugin_loader.h:19
The namespace of (most of the) things related to the Lens Distortion Plugin Kit.
Definition: ldpk.h:180
tde4ldp_create_fct_t * get_create_function()
The create-function for this plugin.
Definition: ldpk_plugin_loader.h:45
Lens Distortion Plugin Base Class.
Definition: tde4_ld_plugin.h:29
void close_plugin()
Close plugin, will be called by destructor.
Definition: ldpk_plugin_loader.C:45
tde4ldp_destroy_fct_t * get_destroy_function()
The destroy-function for this plugin.
Definition: ldpk_plugin_loader.h:48
void set_mode(int mode)
For a list of possible value, see man dlopen. Call this only if you are familiar with dlopen()...
Definition: ldpk_plugin_loader.h:35