Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

rawverse.h

00001 /******************************************************************************
00002  *  rawverse.h   - code for class 'RawVerse'- a module that reads raw text
00003  *                      files:  ot and nt using indexs ??.bks ??.cps ??.vss
00004  *                      and provides lookup and parsing functions based on
00005  *                      class VerseKey
00006  */
00007 
00008 #ifndef RAWVERSE_H
00009 #define RAWVERSE_H
00010 
00011 #include <filemgr.h>
00012 #include <fcntl.h>
00013 
00014 #include <defs.h>
00015 
00016 class SWDLLEXPORT RawVerse
00017 {
00018   static int instance;          // number of instantiated RawVerse objects or derivitives
00019   FileDesc *idxfp[2];
00020   FileDesc *textfp[2];
00021 
00022 protected:
00023   char *path;
00024   void preptext (char *buf);
00025   void settext (char testmt, long idxoff, const char *buf);
00026   void linkentry (char testmt, long destidxoff, long srcidxoff);
00027 
00028 public:
00029   char nl;
00030     RawVerse (const char *ipath, int fileMode = -1);
00031     virtual ~ RawVerse ();
00032   void findoffset (char testmt, long idxoff, long *start,
00033                    unsigned short *end);
00034   void gettext (char testmt, long start, unsigned short size, char *buf);
00035   static char createModule (const char *path);
00036 };
00037 
00038 
00039 #endif

Generated at Thu May 24 19:50:25 2001 for The Sword Project by doxygen1.1.5 written by Dimitri van Heesch, © 1997-2000