diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/swcom.h | 6 | ||||
-rw-r--r-- | include/swkey.h | 3 | ||||
-rw-r--r-- | include/swmodule.h | 7 | ||||
-rw-r--r-- | include/swtext.h | 4 |
4 files changed, 16 insertions, 4 deletions
diff --git a/include/swcom.h b/include/swcom.h index ee95f99..c0b7420 100644 --- a/include/swcom.h +++ b/include/swcom.h @@ -2,7 +2,7 @@ * swcom.h - code for base class 'SWCom'. SWCom is the basis for all * types of commentary modules * - * $Id: swcom.h,v 1.10 2002/07/28 01:48:38 scribe Exp $ + * $Id: swcom.h,v 1.11 2002/09/29 03:21:08 scribe Exp $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -47,6 +47,10 @@ public: virtual ~SWCom(); virtual SWKey *CreateKey() { return new VerseKey(); } + virtual long Index() const; + virtual long Index(long iindex); + + // OPERATORS ----------------------------------------------------------------- diff --git a/include/swkey.h b/include/swkey.h index ca3d2a8..1b58145 100644 --- a/include/swkey.h +++ b/include/swkey.h @@ -3,7 +3,7 @@ * types of keys for indexing into modules (e.g. verse, word, * place, etc.) * - * $Id: swkey.h,v 1.21 2002/09/04 00:52:59 scribe Exp $ + * $Id: swkey.h,v 1.22 2002/09/29 03:21:08 scribe Exp $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -202,6 +202,7 @@ public: * return text; * @endcode */ + virtual long Index() const { return index; } virtual long Index(long iindex) { index = iindex; return index; } diff --git a/include/swmodule.h b/include/swmodule.h index cb82860..0f27df6 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.52 2002/09/25 22:14:58 scribe Exp $ +* $Id: swmodule.h,v 1.53 2002/09/29 03:21:08 scribe Exp $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -121,6 +121,7 @@ protected: FilterList *encodingFilters; int entrySize; + mutable long entryIndex; // internal common storage for index public: /** @@ -183,6 +184,10 @@ protected: char SetKey(const SWKey *ikey) { return setKey(ikey); } virtual char setKey(const SWKey *ikey); + + virtual long Index() const { return entryIndex; } + virtual long Index(long iindex) { entryIndex = iindex; return entryIndex; } + /** * Sets the key of this module. Similar to @see SetKey(const SWKey*) . * @param ikey The SWKey which should be used as new key. diff --git a/include/swtext.h b/include/swtext.h index ee2b92b..14308db 100644 --- a/include/swtext.h +++ b/include/swtext.h @@ -2,7 +2,7 @@ * swtext.h - code for base class 'SWText'. SWText is the basis for all * types of text modules * - * $Id: swtext.h,v 1.11 2002/07/28 01:48:38 scribe Exp $ + * $Id: swtext.h,v 1.12 2002/09/29 03:21:08 scribe Exp $ * * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -50,6 +50,8 @@ public: */ virtual SWKey *CreateKey(); + virtual long Index() const; + virtual long Index(long iindex); // OPERATORS ----------------------------------------------------------------- |