##// END OF EJS Templates
Added POC AMDA python impl and CDAWEB bits...
Added POC AMDA python impl and CDAWEB bits Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1430:ecc8b7b09c3d
r1430:ecc8b7b09c3d
Show More
python_interpreter.h
24 lines | 690 B | text/x-c | CLexer
#include <Data/DateTimeRange.h>
#include <TimeSeries.h>
#include <functional>
#include <iostream>
#include <memory>
class PythonInterpreter
{
public:
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>>>;
PythonInterpreter();
void add_register_callback(
std::function<void(const std::vector<product_t>&, provider_funct_t)> callback);
~PythonInterpreter();
void eval(const std::string& file);
void release();
private:
};