summaryrefslogtreecommitdiffstats
path: root/tcliis/iistcl.h
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2016-10-19 17:56:41 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2016-10-19 17:56:41 (GMT)
commit604eac5688c5d437ed6d585ee63e53fba6f558c0 (patch)
treeaffec25accc42657ccab5ae8a6b62d451ab757e7 /tcliis/iistcl.h
parentde26b9b09300cb249e5b2e69f604d5b080d46c63 (diff)
parente0e7f3df46483e4505b4799f22835a17784d0e70 (diff)
downloadblt-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.h41
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