00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00013
00017
00019
00020
00021
00023
00024 #ifndef _PYTHONINTERFACE_H
00025 #define _PYTHONINTERFACE_H
00026
00027 #include <python.h>
00028 #include <eclipseray/pymacros.h>
00029 #include "settings.h"
00030
00031
00033
00038
00045
00047 class PythonInterface
00048 {
00049 public:
00050
00051
00052
00053
00054
00061 static bool Start( int argc, char *argv[] );
00062
00068 static bool Stop();
00069
00070
00071
00072
00073
00082 static PYOBJECT Run( const char* a_sCode );
00083
00091 static PYOBJECT RunFile( const char* a_sFilename );
00092
00093
00101 static void RunSimpleFile( const char* a_sFilename );
00102
00103
00104
00105 private:
00106
00107
00108 static bool CheckErrors();
00109
00110
00111 static unsigned int m_nFlags;
00112 static PYOBJECT m_pGlobalDictionary;
00113
00114 };
00115
00116
00117
00118 #endif