diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/swmodule.h | 3 | ||||
-rw-r--r-- | include/zcom.h | 4 | ||||
-rw-r--r-- | include/zld.h | 4 | ||||
-rw-r--r-- | include/zstr.h | 3 | ||||
-rw-r--r-- | include/ztext.h | 4 | ||||
-rw-r--r-- | include/zverse.h | 1 |
6 files changed, 13 insertions, 6 deletions
diff --git a/include/swmodule.h b/include/swmodule.h index 0a9c447..cb82860 100644 --- a/include/swmodule.h +++ b/include/swmodule.h @@ -3,7 +3,7 @@ * types of modules (e.g. texts, commentaries, maps, lexicons, * etc.) * -* $Id: swmodule.h,v 1.51 2002/08/28 13:02:57 scribe Exp $ +* $Id: swmodule.h,v 1.52 2002/09/25 22:14:58 scribe Exp $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -503,7 +503,6 @@ protected: * @return *this */ virtual void rawFilter(char *buf, long size, SWKey *key) { - buf[size] = 0; filterBuffer(rawFilters, buf, size, key); } /** Adds an OptionFilter to this module's @ref optionfilters queue diff --git a/include/zcom.h b/include/zcom.h index 96844fe..5c3038d 100644 --- a/include/zcom.h +++ b/include/zcom.h @@ -2,7 +2,7 @@ * zcom.h - code for class 'zCom'- a module that reads compressed text * files: ot and nt using indexs ??.vss * - * $Id: zcom.h,v 1.15 2002/07/28 01:48:38 scribe Exp $ + * $Id: zcom.h,v 1.16 2002/09/25 21:22:03 scribe Exp $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -58,6 +58,8 @@ public: virtual void deleteEntry(); // Delete current module entry // end write interface ------------------------ + virtual void rawZFilter(char *buf, long size, char direction = 0) { rawFilter(buf, size, (SWKey *)(long)direction); }// hack, use key as direction for enciphering + // swcacher interface ---------------------- virtual void flush() { flushCache(); } // end swcacher interface ---------------------- diff --git a/include/zld.h b/include/zld.h index f059597..8c142d9 100644 --- a/include/zld.h +++ b/include/zld.h @@ -2,7 +2,7 @@ * zld.cpp - code for class 'zLD'- a module that reads compressed lexicon and * dictionary files. * - * $Id: zld.h,v 1.5 2002/07/28 01:48:38 scribe Exp $ + * $Id: zld.h,v 1.6 2002/09/25 21:22:03 scribe Exp $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -56,6 +56,8 @@ public: virtual void linkEntry(const SWKey *linkKey); // Link current module entry to other module entry virtual void deleteEntry(); // Delete current module entry // end write interface ------------------------ + + virtual void rawZFilter(char *buf, long size, char direction = 0) { rawFilter(buf, size, (SWKey *)(long)direction); }// hack, use key as direction for enciphering // swcacher interface ---------------------- virtual void flush() { flushCache(); } diff --git a/include/zstr.h b/include/zstr.h index efcdf07..fc314e4 100644 --- a/include/zstr.h +++ b/include/zstr.h @@ -4,7 +4,7 @@ * and provides lookup and parsing functions based on * class StrKey * - * $Id: zstr.h,v 1.4 2002/07/28 01:48:38 scribe Exp $ + * $Id: zstr.h,v 1.5 2002/09/25 21:22:03 scribe Exp $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -66,6 +66,7 @@ public: void getText(long index, char **idxbuf, char **buf); void setText(const char *ikey, const char *buf, long len = -1); void linkEntry(const char *destkey, const char *srckey); + virtual void rawZFilter(char *buf, long size, char direction = 0) {} static signed char createModule (const char *path); }; diff --git a/include/ztext.h b/include/ztext.h index 917d0d3..9e02622 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,v 1.23 2002/07/28 01:48:38 scribe Exp $ + * $Id: ztext.h,v 1.25 2002/09/25 21:22:03 scribe Exp $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -63,6 +63,8 @@ public: virtual void deleteEntry(); // Delete current module entry // end write interface ------------------------ + virtual void rawZFilter(char *buf, long size, char direction = 0) { rawFilter(buf, size, (SWKey *)(long)direction); }// hack, use key as direction for enciphering + // swcacher interface ---------------------- virtual void flush() { flushCache(); } // end swcacher interface ---------------------- diff --git a/include/zverse.h b/include/zverse.h index 02eec46..55aeea3 100644 --- a/include/zverse.h +++ b/include/zverse.h @@ -48,6 +48,7 @@ public: virtual ~zVerse(); void findoffset(char testmt, long idxoff, long *start, unsigned short *end); void zreadtext(char testmt, long start, unsigned short size, char *buf); + virtual void rawZFilter(char *buf, long size, char direction = 0) {} static char createModule(const char *path, int blockBound); }; |