#include <SalomeApp_PyInterp.h>
Public Member Functions | |
virtual | ~SalomeApp_PyInterp () |
Destructor. More... | |
virtual void | initStudy () |
Called when study is initialized. More... | |
virtual void | closeContext () |
Called when study is closed. More... | |
Protected Member Functions | |
SalomeApp_PyInterp (SUIT_ResourceMgr *) | |
Constructor. More... | |
virtual bool | initContext () |
virtual int | beforeRun () |
Called before each Python command running. More... | |
Private Attributes | |
bool | myFirstRun |
bool | myFirstInitStudy |
SUIT_ResourceMgr * | myResourceMgr |
Friends | |
class | SalomeApp_Application |
|
virtual |
Destructor.
|
protected |
Constructor.
|
protectedvirtual |
Called before each Python command running.
References myFirstInitStudy, myFirstRun, myResourceMgr, QtxResourceMgr::parameters(), and QtxResourceMgr::stringValue().
|
virtual |
Called when study is closed.
References myFirstInitStudy.
|
protectedvirtual |
Initialize context dictionaries. GIL is held already. The code executed in an embedded interpreter is expected to be run at the module level, in which case local and global context have to be the same dictionary. See: http://stackoverflow.com/questions/12265756/c-python-running-python-code-within-a-context for an explanation.
|
virtual |
Called when study is initialized.
References myFirstInitStudy.
|
friend |
|
private |
|
private |
|
private |