diff options
Diffstat (limited to 'include/rawverse.h')
-rw-r--r-- | include/rawverse.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/include/rawverse.h b/include/rawverse.h index 9f9e2c4..a5f3d08 100644 --- a/include/rawverse.h +++ b/include/rawverse.h @@ -12,27 +12,29 @@ #include <fcntl.h> #include <defs.h> +#include <swbuf.h> + +SWORD_NAMESPACE_START class SWDLLEXPORT RawVerse { - static int instance; // number of instantiated RawVerse objects or derivitives + static int instance; // number of instantiated RawVerse objects or derivitives protected: - FileDesc *idxfp[2]; - FileDesc *textfp[2]; + 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); + char *path; + void prepText(SWBuf &buf); + void doSetText(char testmt, long idxoff, const char *buf, long len = -1); + void doLinkEntry(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); + static const char *nl; + RawVerse(const char *ipath, int fileMode = -1); + virtual ~RawVerse(); + void findOffset(char testmt, long idxoff, long *start, unsigned short *end); + void readText(char testmt, long start, unsigned short size, SWBuf &buf); + static char createModule(const char *path); }; - +SWORD_NAMESPACE_END #endif |