summaryrefslogtreecommitdiff
path: root/include/rawverse.h
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:33 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:33 -0400
commit8d3fc864d094eeadc721f8e93436b37a5fab173e (patch)
tree05e201c67dca55b4ccdf90ad479a25d95e3b1e63 /include/rawverse.h
Imported Upstream version 1.5.3
Diffstat (limited to 'include/rawverse.h')
-rw-r--r--include/rawverse.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/rawverse.h b/include/rawverse.h
new file mode 100644
index 0000000..9f9e2c4
--- /dev/null
+++ b/include/rawverse.h
@@ -0,0 +1,38 @@
+/******************************************************************************
+ * rawverse.h - code for class 'RawVerse'- a module that reads raw text
+ * files: ot and nt using indexs ??.bks ??.cps ??.vss
+ * and provides lookup and parsing functions based on
+ * class VerseKey
+ */
+
+#ifndef RAWVERSE_H
+#define RAWVERSE_H
+
+#include <filemgr.h>
+#include <fcntl.h>
+
+#include <defs.h>
+
+class SWDLLEXPORT RawVerse {
+ static int instance; // number of instantiated RawVerse objects or derivitives
+protected:
+ FileDesc *idxfp[2];
+ FileDesc *textfp[2];
+
+ char *path;
+ void preptext (char *buf);
+ void settext (char testmt, long idxoff, const char *buf, long len = 0);
+ void linkentry (char testmt, long destidxoff, long srcidxoff);
+
+public:
+ char nl;
+ RawVerse (const char *ipath, int fileMode = -1);
+ virtual ~ RawVerse ();
+ void findoffset (char testmt, long idxoff, long *start,
+ unsigned short *end);
+ void gettext (char testmt, long start, unsigned short size, char *buf);
+ static char createModule (const char *path);
+};
+
+
+#endif