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 static int instance;
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