##// END OF EJS Templates
Some more progress on Python Providers side, works with a simple request on CDAWeb....
Some more progress on Python Providers side, works with a simple request on CDAWeb. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1429:78e9c85d13ee
r1429:78e9c85d13ee
Show More
python_providers.h
33 lines | 834 B | text/x-c | CLexer
#ifndef PYTHON_PROVIDERS_H
#define PYTHON_PROVIDERS_H
#include <Plugin/IPlugin.h>
#include <QUuid>
#include <memory>
#include <python_interpreter.h>
#ifndef SCIQLOP_PLUGIN_JSON_FILE_PATH
#define SCIQLOP_PLUGIN_JSON_FILE_PATH "python_providers.json"
#endif
class DataSourceItem;
class PythonProviders : public QObject, public IPlugin
{
Q_OBJECT
Q_INTERFACES(IPlugin)
Q_PLUGIN_METADATA(IID "sciqlop.plugin.IPlugin" FILE SCIQLOP_PLUGIN_JSON_FILE_PATH)
public:
/// @sa IPlugin::initialize()
void initialize() override;
~PythonProviders();
private:
void register_product(const std::vector<std::pair<std::string,std::vector<std::pair<std::string,std::string>>>>& product_list,
PythonInterpreter::provider_funct_t
f);
PythonInterpreter _interpreter;
};
#endif // PYTHON_PROVIDERS_H