summaryrefslogtreecommitdiff
path: root/bindings/swig/rawgenbook.i
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/swig/rawgenbook.i')
-rw-r--r--bindings/swig/rawgenbook.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/bindings/swig/rawgenbook.i b/bindings/swig/rawgenbook.i
new file mode 100644
index 0000000..c958441
--- /dev/null
+++ b/bindings/swig/rawgenbook.i
@@ -0,0 +1,22 @@
+%{
+#include "rawgenbook.h"
+#include "treekeyidx.h"
+#include "swkey.h"
+using namespace sword;
+%}
+
+class RawGenBook : public SWGenBook {
+public:
+ RawGenBook (const char *ipath, const char *iname = 0, const char *idesc = 0, SWDisplay * idisp = 0, SWTextEncoding encoding = ENC_UNKNOWN, SWTextDirection dir = DIRECTION_LTR, SWTextMarkup markup = FMT_UNKNOWN, const char* ilang = 0);
+ virtual ~ RawGenBook ();
+
+ static char createModule (const char *ipath);
+
+%extend {
+ TreeKeyIdx* getTreeKey() {
+ return ( (TreeKeyIdx *) ( (SWKey *) (*self) ) );
+ };
+}
+};
+
+