Main Page   Namespace List   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   static int instance;          // number of instantiated RawVerse objects or derivitives
00018 protected:
00019   FileDesc *idxfp[2];
00020   FileDesc *textfp[2];
00021 
00022   char *path;
00023   void preptext (char *buf);
00024   void settext (char testmt, long idxoff, const char *buf, long len = 0);
00025   void linkentry (char testmt, long destidxoff, long srcidxoff);
00026 
00027 public:
00028   char nl;
00029     RawVerse (const char *ipath, int fileMode = -1);
00030     virtual ~ RawVerse ();
00031   void findoffset (char testmt, long idxoff, long *start,
00032                    unsigned short *end);
00033   void gettext (char testmt, long start, unsigned short size, char *buf);
00034   static char createModule (const char *path);
00035 };
00036 
00037 
00038 #endif

Generated on Thu Jun 20 22:13:00 2002 for The Sword Project by doxygen1.2.15