python_interpreter.h
24 lines
| 705 B
| text/x-c
|
CLexer
r1428 | #include <TimeSeries.h> | |||
#include <functional> | ||||
#include <iostream> | ||||
#include <memory> | ||||
class PythonInterpreter | ||||
{ | ||||
public: | ||||
r1430 | using provider_funct_t = std::function<std::shared_ptr<TimeSeries::ITimeSerie>( | |||
std::vector<std::tuple<std::string, std::string>>&, double, double)>; | ||||
using product_t = std::tuple<std::string, std::vector<std::string>, | ||||
std::vector<std::pair<std::string, std::string>>>; | ||||
r1428 | PythonInterpreter(); | |||
r1430 | void add_register_callback( | |||
std::function<void(const std::vector<product_t>&, provider_funct_t)> callback); | ||||
r1428 | ~PythonInterpreter(); | |||
void eval(const std::string& file); | ||||
r1440 | void eval_str(const std::string &content); | |||
r1429 | void release(); | |||
r1428 | ||||
private: | ||||
}; | ||||