00001
00002
00003
00004
00005
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;
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