5 #ifndef CNOID_PYTHON_PLUGIN_PYTHON_EXECUTOR_H 6 #define CNOID_PYTHON_PLUGIN_PYTHON_EXECUTOR_H 9 #include <cnoid/Signal> 14 class PythonExecutorImpl;
19 static void setModuleRefreshEnabled(
bool on);
25 void setBackgroundMode(
bool on);
26 bool isBackgroundMode()
const;
28 enum State { NOT_RUNNING, RUNNING_FOREGROUND, RUNNING_BACKGROUND };
32 bool execCode(
const std::string& code);
33 bool execFile(
const std::string& filename);
34 bool waitToFinish(
double timeout);
35 boost::python::object resultObject();
36 const std::string resultString()
const;
39 bool hasException()
const;
40 const std::string exceptionTypeName()
const;
41 const std::string exceptionText()
const;
42 boost::python::object exceptionType()
const;
43 boost::python::object exceptionValue()
const;
45 bool isTerminated()
const;
50 PythonExecutorImpl* impl;
Definition: PythonExecutor.h:16
State
Definition: PythonExecutor.h:28
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
#define CNOID_EXPORT
Definition: Util/exportdecl.h:37