17 #include "SQLamarr/BasePlugin.h"
52 const std::string& library,
54 const std::string& function_name,
56 const std::string& select_query,
60 const std::string& output_table,
62 const std::vector<std::string> outputs,
66 const std::vector<std::string> reference_keys = {
"ref_id"}
69 :
BasePlugin(db, library, function_name, select_query,
70 output_table, outputs, reference_keys)
71 , m_func (load_func<mlfunc>(function_name))
77 void eval_parametrization (
float* output,
const float* input)
override;
80 typedef float *(*mlfunc)(
float *,
const float*);
Interface to dynamically linked parametrizations.
BasePlugin(SQLite3DB &db, const std::string &library, const std::string &function_name, const std::string &select_query, const std::string &output_table, const std::vector< std::string > outputs, const std::vector< std::string > reference_keys={"ref_id"})
Constructor.
Wrap an external function as defined in a compiled shared library.
Plugin(SQLite3DB &db, const std::string &library, const std::string &function_name, const std::string &select_query, const std::string &output_table, const std::vector< std::string > outputs, const std::vector< std::string > reference_keys={"ref_id"})
Constructor.
A database connection handler easying sharing the DB between C++ and Python.