Version: 9.12.0
SalomeApp_PyInterp Class Reference

#include <SalomeApp_PyInterp.h>

Inheritance diagram for SalomeApp_PyInterp:
Inheritance graph

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_ResourceMgrmyResourceMgr
 

Friends

class SalomeApp_Application
 

Constructor & Destructor Documentation

◆ ~SalomeApp_PyInterp()

SalomeApp_PyInterp::~SalomeApp_PyInterp ( )
virtual

Destructor.

◆ SalomeApp_PyInterp()

SalomeApp_PyInterp::SalomeApp_PyInterp ( SUIT_ResourceMgr resMgr)
protected

Constructor.

Member Function Documentation

◆ beforeRun()

int SalomeApp_PyInterp::beforeRun ( )
protectedvirtual

Called before each Python command running.

References myFirstInitStudy, myFirstRun, myResourceMgr, QtxResourceMgr::parameters(), and QtxResourceMgr::stringValue().

◆ closeContext()

void SalomeApp_PyInterp::closeContext ( )
virtual

Called when study is closed.

References myFirstInitStudy.

◆ initContext()

bool SalomeApp_PyInterp::initContext ( )
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.

◆ initStudy()

void SalomeApp_PyInterp::initStudy ( )
virtual

Called when study is initialized.

References myFirstInitStudy.

Friends And Related Function Documentation

◆ SalomeApp_Application

friend class SalomeApp_Application
friend

Member Data Documentation

◆ myFirstInitStudy

bool SalomeApp_PyInterp::myFirstInitStudy
private

◆ myFirstRun

bool SalomeApp_PyInterp::myFirstRun
private

◆ myResourceMgr

SUIT_ResourceMgr* SalomeApp_PyInterp::myResourceMgr
private

The documentation for this class was generated from the following files: