#include <PythonExecutor.h>
- Note
- GIL must be locked to access to the objects of this class. Even the destructor requires GIL to be locked when it is executed.
◆ State
Enumerator |
---|
NOT_RUNNING | |
RUNNING_FOREGROUND | |
RUNNING_BACKGROUND | |
◆ PythonExecutor() [1/2]
PythonExecutor::PythonExecutor |
( |
| ) |
|
◆ PythonExecutor() [2/2]
◆ ~PythonExecutor()
PythonExecutor::~PythonExecutor |
( |
| ) |
|
◆ eval()
bool PythonExecutor::eval |
( |
const std::string & |
code | ) |
|
◆ exceptionText()
const std::string PythonExecutor::exceptionText |
( |
| ) |
const |
◆ exceptionType()
python::object PythonExecutor::exceptionType |
( |
| ) |
const |
- Note
- GIL must be obtained when accessing this object.
◆ exceptionTypeName()
const std::string PythonExecutor::exceptionTypeName |
( |
| ) |
const |
- Note
- The name includes module components.
◆ exceptionValue()
python::object PythonExecutor::exceptionValue |
( |
| ) |
const |
- Note
- GIL must be obtained when accessing this object.
◆ execCode()
bool PythonExecutor::execCode |
( |
const std::string & |
code | ) |
|
◆ execFile()
bool PythonExecutor::execFile |
( |
const std::string & |
filename | ) |
|
◆ hasException()
bool PythonExecutor::hasException |
( |
| ) |
const |
◆ isBackgroundMode()
bool PythonExecutor::isBackgroundMode |
( |
| ) |
const |
◆ isTerminated()
bool PythonExecutor::isTerminated |
( |
| ) |
const |
◆ resultObject()
python::object cnoid::PythonExecutor::resultObject |
( |
| ) |
|
|
inline |
◆ resultString()
const std::string cnoid::PythonExecutor::resultString |
( |
| ) |
const |
|
inline |
◆ returnValue()
python::object PythonExecutor::returnValue |
( |
| ) |
|
- Note
- This is only valid when the "eval' function is executed.
-
GIL must be obtained when accessing this object.
◆ setBackgroundMode()
void PythonExecutor::setBackgroundMode |
( |
bool |
on | ) |
|
◆ setModuleRefreshEnabled()
void PythonExecutor::setModuleRefreshEnabled |
( |
bool |
on | ) |
|
|
static |
◆ sigFinished()
◆ state()
◆ terminate()
bool PythonExecutor::terminate |
( |
| ) |
|
◆ waitToFinish()
bool PythonExecutor::waitToFinish |
( |
double |
timeout | ) |
|
The documentation for this class was generated from the following files: