devel
| Line | |
|---|
| 1 | /* tt_tclutils.h - This file define a set of utils functions. |
|---|
| 2 | GNU/tolTcl Library |
|---|
| 3 | |
|---|
| 4 | Copyright (C) 2001, 2002, 2003 - Bayes Decisión, SL |
|---|
| 5 | |
|---|
| 6 | This program is free software; you can redistribute it and/or modify |
|---|
| 7 | it under the terms of the GNU General Public License as published by |
|---|
| 8 | the Free Software Foundation; either version 2, or (at your option) |
|---|
| 9 | any later version. |
|---|
| 10 | |
|---|
| 11 | This program is distributed in the hope that it will be useful, |
|---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | GNU General Public License for more details. |
|---|
| 15 | |
|---|
| 16 | You should have received a copy of the GNU General Public License |
|---|
| 17 | along with this program; if not, write to the Free Software |
|---|
| 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|---|
| 19 | USA. |
|---|
| 20 | */ |
|---|
| 21 | |
|---|
| 22 | #ifndef TT_TCLUTILS_H |
|---|
| 23 | #define TT_TCLUTILS_H 1 |
|---|
| 24 | |
|---|
| 25 | #include <tt_common.h> |
|---|
| 26 | #include <tcl.h> |
|---|
| 27 | |
|---|
| 28 | class EvalScript { |
|---|
| 29 | public: |
|---|
| 30 | EvalScript( Tcl_Interp * interp, |
|---|
| 31 | Tcl_Obj * script, int objc, Tcl_Obj * objv[] ); |
|---|
| 32 | ~EvalScript(); |
|---|
| 33 | int Eval(); |
|---|
| 34 | int Status() { |
|---|
| 35 | return m_status; |
|---|
| 36 | } |
|---|
| 37 | private: |
|---|
| 38 | Tcl_Interp * m_interp; |
|---|
| 39 | int m_objc; |
|---|
| 40 | Tcl_Obj ** m_objv; |
|---|
| 41 | int m_xobjc; |
|---|
| 42 | Tcl_Obj ** m_xobjv; |
|---|
| 43 | int m_status; |
|---|
| 44 | }; |
|---|
| 45 | |
|---|
| 46 | Tcl_Obj * NewExternalStringObj( char * str ); |
|---|
| 47 | |
|---|
| 48 | #endif /* Tt_TCLUTILS_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.