Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 Constructor. More...
 
virtual bool initContext ()
 
virtual int beforeRun ()
 Called before each Python command running. More...
 

Private Attributes

bool myFirstRun
 
bool myFirstInitStudy
 

Friends

class SalomeApp_Application
 

Constructor & Destructor Documentation

SalomeApp_PyInterp::~SalomeApp_PyInterp ( )
virtual
SalomeApp_PyInterp::SalomeApp_PyInterp ( )
protected

Member Function Documentation

int SalomeApp_PyInterp::beforeRun ( )
protectedvirtual

References myFirstInitStudy, and myFirstRun.

void SalomeApp_PyInterp::closeContext ( )
virtual

References myFirstInitStudy.

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.

void SalomeApp_PyInterp::initStudy ( )
virtual

References myFirstInitStudy.

Friends And Related Function Documentation

friend class SalomeApp_Application
friend

Member Data Documentation

bool SalomeApp_PyInterp::myFirstInitStudy
private
bool SalomeApp_PyInterp::myFirstRun
private

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