Loading...
Searching...
No Matches
pyKernel.h
Go to the documentation of this file.
#ifndef BALL_PYTHON_PYKERNEL_H
#define BALL_PYTHON_PYKERNEL_H
#include <BALL/COMMON/global.h>
#include <BALL/PYTHON/pyWrapper.h>
#include <map>
#include <string>
#include <utility>
namespace BALL
{
class PyKernel
{
public:
using KeyValArgs = std::map<std::string, std::string>;
PyKernel() = default;
virtual ~PyKernel() = default;
virtual bool isStarted() const = 0;
virtual std::string getErrorMessage() const = 0;
virtual std::pair<bool, std::string> run(std::string str) = 0;
BALL_DEPRECATED virtual bool runFile(std::string filename) = 0;
virtual bool execute(const std::string& module, const std::string& func, const KeyValArgs& args) = 0;
protected:
virtual void loadScriptDir();
};
}
#endif // BALL_PYTHON_PYKERNEL_H
global.h
BALL_DEPRECATED
#define BALL_DEPRECATED
Definition COMMON/global.h:64
BALL::PyKernel::runFile
virtual BALL_DEPRECATED bool runFile(std::string filename)=0
BALL::PyKernel::~PyKernel
virtual ~PyKernel()=default
BALL::PyKernel::KeyValArgs
std::map< std::string, std::string > KeyValArgs
Definition pyKernel.h:17
BALL::PyKernel::execute
virtual bool execute(const std::string &module, const std::string &func, const KeyValArgs &args)=0
BALL::PyKernel::isStarted
virtual bool isStarted() const =0
BALL::PyKernel::loadScriptDir
virtual void loadScriptDir()
BALL::PyKernel::PyKernel
PyKernel()=default
BALL::PyKernel::run
virtual std::pair< bool, std::string > run(std::string str)=0
BALL::PyKernel::getErrorMessage
virtual std::string getErrorMessage() const =0
BALL
Definition constants.h:13
pyWrapper.h