00001 /* This file is part of The_Merry_Turnip 00002 * 00003 * The_Merry_Turnip - TODO: Description 00004 * Copyright © DAVY Guillaume 2009 <davyg2@gmail.com> 00005 * 00006 * The_Merry_Turnip is free software: you can redistribute it and/or modify it 00007 * under the terms of the GNU General Public License as published by the 00008 * Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * The_Merry_Turnip is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00014 * See the GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License along 00017 * with this program. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00023 #ifndef __PYINT_H_INCLUDED__ 00024 #define __PYINT_H_INCLUDED__ 00025 00027 class pyInt : public base 00028 { 00029 public: 00031 pyInt(); 00032 00034 ~pyInt(); 00035 00037 int init(coeur*); 00038 00040 int update(); 00041 00043 int close(); 00044 00046 bool OnEvent(const SEvent&); 00047 00049 stringw eval(stringw); 00050 00052 int exec(stringw); 00053 00055 int addPyEnv(stringc,object); 00056 private: 00058 object dict; 00059 00061 object main_module; 00062 };// End class pyInt 00063 00064 #endif //__PYINT_H_INCLUDED__ 00065