-// SALOME SALOMEGUI : implementation of desktop and GUI kernel
+// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
//
-// Copyright (C) 2003 CEA/DEN, EDF R&D
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// SALOME SALOMEGUI : implementation of desktop and GUI kernel
//
// File : PyInterp_base.h
// Author : Christian CAREMOLI, Paul RASCLE, EDF
// Module : SALOME
-// $Header$
#ifndef _PYINTERP_BASE_H_
#define _PYINTERP_BASE_H_
~PyLockWrapper();
};
+typedef void PyOutChanged(void* data,char * c);
+
class PYINTERP_EXPORT PyInterp_base{
public:
static int _argc;
PyLockWrapper GetLockWrapper();
std::string getbanner();
- std::string getverr();
- std::string getvout();
+ void setverrcb(PyOutChanged*,void*);
+ void setvoutcb(PyOutChanged*,void*);
const char * getPrevious();
const char * getNext();
}
};
+
+typedef struct {
+ PyObject_HEAD
+ int softspace;
+ PyOutChanged* _cb;
+ void* _data;
+ bool _iscerr;
+} PyStdOut;
+
#endif