-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#include "PyInterp.h" // !!! WARNING !!! THIS INCLUDE MUST BE THE VERY FIRST !!!
#include "PyInterp_Utils.h"
+#include "PyInterp_RefCounterObj.h"
#include <list>
#include <string>
* (only there namespace is made available when importing in another context).
* See also class PyConsole_Interp.
*/
-class PYINTERP_EXPORT PyInterp_Interp
+class PYINTERP_EXPORT PyInterp_Interp : public PyInterp_RefCounterObj
{
public:
static int _argc;
static char* _argv[];
- PyInterp_Interp();
- virtual ~PyInterp_Interp();
-
void initialize();
void destroy();
virtual int run(const char *command);
- virtual void initStudy() {};
+ virtual void initStudy() {}
std::string getBanner() const;
void setverrcb(PyOutChanged*, void*);
const char* getPrevious();
const char* getNext();
+protected:
+
+ PyInterp_Interp();
+ virtual ~PyInterp_Interp();
+
protected:
/** Redirection of stdout and stderr */
PyObject* _vout;