1 #ifndef BALL_PYTHON_PYINTERPRETER_H
2 #define BALL_PYTHON_PYINTERPRETER_H
13 #include <QtCore/QList>
14 #include <QtCore/QPair>
15 #include <QtCore/QString>
91 static std::pair<bool, std::string>
run(
const std::string& s);
121 BALL_DEPRECATED static bool execute(
const QString& module,
const QString& func,
const QList<QPair<QString, QString> >& params);
static std::pair< bool, std::string > run(const std::string &s)
std::vector< String > PathStrings
Used to encode the individual paths appended to sys.path for dynamic loading of modules.
static BALL_DEPRECATED String getStartupLog()
static BALL_DEPRECATED void setSysPath(const PathStrings &path_strings)
static BALL_DEPRECATED String runFile(const String &filename)
static BALL_DEPRECATED bool isValid()
static void startServer()
static bool serverIsRunning()
static bool isInitialized()
static BALL_DEPRECATED String run(const String &s, bool &result)
static bool execute(const std::string &module, const std::string &func, const PyKernel::KeyValArgs ¶ms)
static BALL_DEPRECATED const PathStrings & getSysPath()
static PathStrings sys_path_
static std::unique_ptr< PyServer > server_
static BALL_DEPRECATED bool execute(const QString &module, const QString &func, const QList< QPair< QString, QString > > ¶ms)
static std::string getErrorMessage()
static std::unique_ptr< PyKernel > kernel_
std::map< std::string, std::string > KeyValArgs