diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-19 17:56:41 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-19 17:56:41 (GMT) |
commit | 604eac5688c5d437ed6d585ee63e53fba6f558c0 (patch) | |
tree | affec25accc42657ccab5ae8a6b62d451ab757e7 /tcliis/iistcl.h | |
parent | de26b9b09300cb249e5b2e69f604d5b080d46c63 (diff) | |
parent | e0e7f3df46483e4505b4799f22835a17784d0e70 (diff) | |
download | blt-604eac5688c5d437ed6d585ee63e53fba6f558c0.zip blt-604eac5688c5d437ed6d585ee63e53fba6f558c0.tar.gz blt-604eac5688c5d437ed6d585ee63e53fba6f558c0.tar.bz2 |
Merge commit 'e0e7f3df46483e4505b4799f22835a17784d0e70' as 'tcliis'
Diffstat (limited to 'tcliis/iistcl.h')
-rw-r--r-- | tcliis/iistcl.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tcliis/iistcl.h b/tcliis/iistcl.h new file mode 100644 index 0000000..9a09bd5 --- /dev/null +++ b/tcliis/iistcl.h @@ -0,0 +1,41 @@ +// Copyright (C) 1999-2013 +// Smithsonian Astrophysical Observatory, Cambridge, MA, USA +// For conditions of distribution and use, see copyright notice in "copyright" + +#ifndef __iistcl_h__ +#define __iistcl_h__ + +extern "C" { + #include "ximtool.h" +} + +extern int IISDebug; + +#define MAXCHANNEL 40 + +class IIS { + private: + Tcl_Interp* interp; + + public: + XimData xim; + IoChan* chan[MAXCHANNEL]; + void (*func[MAXCHANNEL])(IoChan*, int*, void*); + + public: + IIS(Tcl_Interp*); + ~IIS(); + + void eval(char*); + const char* evalstr(char*); + const char* result(); + int open(int, const char*[]); + int close(); + int retcur(int, const char*[]); + int encodewcs(int, const char*[]); + int debug(int, const char*[]); +}; + +extern IIS* iis; + +#endif |