#include <SALOME_CPythonHelper.hxx>
Public Member Functions | |
| void | initializePython (int argc, char *argv[]) |
| void | allowPythonCallsFromDifferentThread () const |
| void | registerToSalomePiDict (const std::string &processName, long pid) const |
| std::vector< long > | evalVL (const std::string &pyCode) const |
| std::string | evalS (const std::string &pyCode) const |
| virtual | ~SALOME_CPythonHelper () |
| PyObject * | getGlobals () const |
| PyObject * | getLocals () const |
| PyObject * | getPickler () const |
Static Public Member Functions | |
| static SALOME_CPythonHelper * | Singleton () |
| static void | KillSingleton () |
Private Attributes | |
| PyObject * | _globals = nullptr |
| PyObject * | _locals = nullptr |
| PyObject * | _pickler = nullptr |
| PyObject * | _subprocess = nullptr |
Static Private Attributes | |
| static SALOME_CPythonHelper * | _CPYTHONHELPER_INSTANCE = nullptr |
| void SALOME_CPythonHelper::allowPythonCallsFromDifferentThread | ( | ) | const |
Referenced by CommonDataScopeServerMain(), and main().
| std::string SALOME_CPythonHelper::evalS | ( | const std::string & | pyCode | ) | const |
References _globals, _locals, test::res, and TestKernelHelpers::ret.
Referenced by SALOME_ExternalServerLauncher::gethostname().
| std::vector< long > SALOME_CPythonHelper::evalVL | ( | const std::string & | pyCode | ) | const |
References _globals, _locals, test::res, and TestKernelHelpers::ret.
Referenced by SALOME_ExternalServerHandler::listOfChildrenPID().
| PyObject * SALOME_CPythonHelper::getGlobals | ( | ) | const |
| PyObject * SALOME_CPythonHelper::getLocals | ( | ) | const |
| PyObject * SALOME_CPythonHelper::getPickler | ( | ) | const |
| void SALOME_CPythonHelper::initializePython | ( | int | argc, |
| char * | argv[] | ||
| ) |
References _globals, _locals, _pickler, _subprocess, envSalome::argv, Py_DecodeLocale(), and TestSalomeSDS1::tmp.
Referenced by CommonDataScopeServerMain(), GetDSMInstanceInternal(), and main().
|
static |
References _CPYTHONHELPER_INSTANCE.
| void SALOME_CPythonHelper::registerToSalomePiDict | ( | const std::string & | processName, |
| long | pid | ||
| ) | const |
|
static |
References _CPYTHONHELPER_INSTANCE.
Referenced by GetDSMInstanceInternal(), GetExternalServerInstance(), and GetLogManagerInstance().
|
staticprivate |
Referenced by KillSingleton(), and Singleton().
|
private |
Referenced by evalS(), evalVL(), and initializePython().
|
private |
Referenced by evalS(), evalVL(), initializePython(), and ~SALOME_CPythonHelper().
|
private |
Referenced by initializePython(), and ~SALOME_CPythonHelper().
|
private |
Referenced by initializePython().