summaryrefslogtreecommitdiffstats
path: root/lib/kaitai/kaitaistruct.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kaitai/kaitaistruct.h')
-rwxr-xr-xlib/kaitai/kaitaistruct.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/kaitai/kaitaistruct.h b/lib/kaitai/kaitaistruct.h
new file mode 100755
index 0000000000..f8b848fdd1
--- /dev/null
+++ b/lib/kaitai/kaitaistruct.h
@@ -0,0 +1,20 @@
+#ifndef KAITAI_STRUCT_H
+#define KAITAI_STRUCT_H
+
+#include <kaitaistream.h>
+
+namespace kaitai {
+
+class kstruct {
+public:
+ kstruct(kstream *_io) { m__io = _io; }
+ virtual ~kstruct() {}
+protected:
+ kstream *m__io;
+public:
+ kstream *_io() { return m__io; }
+};
+
+}
+
+#endif