diff options
Diffstat (limited to 'include/ztext.h')
-rw-r--r-- | include/ztext.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/ztext.h b/include/ztext.h index 461dc45..2f0b111 100644 --- a/include/ztext.h +++ b/include/ztext.h @@ -2,7 +2,7 @@ * ztext.h - code for class 'zText'- a module that reads compressed text * files: ot and nt using indexs ??.vss * - * $Id: ztext.h 1864 2005-11-20 06:06:40Z scribe $ + * $Id: ztext.h 2303 2009-04-06 13:38:34Z scribe $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -52,10 +52,11 @@ class SWDLLEXPORT zText:public zVerse, public SWText { public: zText(const char *ipath, const char *iname = 0, const char *idesc = 0, - int blockType = CHAPTERBLOCKS, SWCompress * icomp = 0, - SWDisplay * idisp = 0, SWTextEncoding encoding = ENC_UNKNOWN, + int blockType = CHAPTERBLOCKS, SWCompress *icomp = 0, + SWDisplay *idisp = 0, SWTextEncoding encoding = ENC_UNKNOWN, SWTextDirection dir = DIRECTION_LTR, - SWTextMarkup markup = FMT_UNKNOWN, const char* ilang = 0); + SWTextMarkup markup = FMT_UNKNOWN, const char *ilang = 0, + const char *versification = "KJV"); virtual ~zText(); virtual SWBuf &getRawEntryBuf(); @@ -65,8 +66,8 @@ public: // write interface ---------------------------- virtual bool isWritable(); - static char createModule(const char *path, int blockBound) { - return zVerse::createModule(path, blockBound); + static char createModule(const char *path, int blockBound, const char *v11n = "KJV") { + return zVerse::createModule(path, blockBound, v11n); } virtual void setEntry(const char *inbuf, long len = -1); // Modify current module entry @@ -80,6 +81,9 @@ public: virtual void flush() { flushCache(); } // end swcacher interface ---------------------- + virtual bool isLinked(const SWKey *k1, const SWKey *k2) const; + virtual bool hasEntry(const SWKey *k) const; + SWMODULE_OPERATORS }; |