4#ifndef DYNAMIC_GRAPH_PYTHON_INTERPRETER_H
5#define DYNAMIC_GRAPH_PYTHON_INTERPRETER_H
28 [[deprecated(
"you *SHOULD* handle error messages")]] std::string
python(
29 const std::string& command);
33 void python(
const std::string& command, std::string& result, std::string& out,
44 std::string
processStream(std::istream& stream, std::ostream& os);
51 PyThreadState* _pyState;
Interpreter()
Definition interpreter.cc:69
PyObject * globals()
Return a pointer to the dictionary of global variables.
Definition interpreter.cc:207
std::string processStream(std::istream &stream, std::ostream &os)
Process input stream to send relevant blocks to python.
Definition interpreter.cc:248
void runMain(void)
Definition interpreter.cc:236
std::string python(const std::string &command)
Method to start python interperter.
Definition interpreter.cc:138
void runPythonFile(std::string filename)
Method to exectue a python script.
Definition interpreter.cc:209
#define DYNAMIC_GRAPH_PYTHON_DLLAPI
Definition config.hh:64
Definition convert-dg-to-py.hh:9
Definition convert-dg-to-py.hh:8