The SWORD Project
1.9.0.svnversion
|
#include <versetreekey.h>
Public Member Functions | |
virtual int | _compare (const VerseKey &ikey) |
SWDEPRECATED char | AutoNormalize (char iautonorm) |
SWDEPRECATED char | AutoNormalize () const |
SWDEPRECATED char | Book () const |
SWDEPRECATED char | Book (char ibook) |
SWDEPRECATED int | Chapter () const |
SWDEPRECATED int | Chapter (int ichapter) |
void | clearBounds () const |
SWDEPRECATED void | ClearBounds () |
virtual SWKey * | clone () const |
virtual int | compare (const SWKey &ikey) |
virtual void | copyFrom (const SWKey &ikey) |
virtual void | copyFrom (const VerseKey &ikey) |
virtual void | decrement (int steps=1) |
virtual bool | equals (const SWKey &ikey) |
SWDEPRECATED char | Error () |
virtual char | getBook () const |
virtual const char * | getBookAbbrev () const |
virtual int | getBookMax () const |
virtual const char * | getBookName () const |
virtual int | getChapter () const |
virtual int | getChapterMax () const |
const SWClass * | getClass () const |
virtual char | getError () const |
virtual long | getIndex () const |
char * | getLocale () const |
VerseKey & | getLowerBound () const |
virtual const char * | getOSISBookName () const |
virtual const char * | getOSISRef () const |
virtual const char * | getOSISRefRangeText () const |
virtual const char * | getRangeText () const |
virtual const char * | getShortRangeText () const |
virtual const char * | getShortText () const |
virtual char | getSuffix () const |
virtual char | getTestament () const |
virtual long | getTestamentIndex () const |
virtual int | getTestamentMax () const |
virtual const char * | getText () const |
virtual TreeKey * | getTreeKey () |
virtual const TreeKey * | getTreeKey () const |
VerseKey & | getUpperBound () const |
virtual int | getVerse () const |
virtual int | getVerseMax () const |
virtual const char * | getVersificationSystem () const |
SWDEPRECATED char | Headings (char iheadings=MAXPOS(char)) |
virtual void | increment (int steps=1) |
virtual bool | isAutoNormalize () const |
virtual bool | isBoundSet () const |
virtual bool | isIntros () const |
bool | isPersist () const |
virtual bool | isTraversable () const |
SWDEPRECATED VerseKey & | LowerBound (const VerseKey &lb) |
SWDEPRECATED VerseKey & | LowerBound () const |
virtual long | newIndex () const |
virtual void | Normalize (char autocheck=0) |
virtual void | normalize (bool autocheck=false) |
virtual SWKEY_OPERATORS SWKey & | operator= (const VerseKey &ikey) |
virtual ListKey | parseVerseList (const char *buf, const char *defaultKey=0, bool expandRange=false, bool useChapterAsVerse=false) |
SWDEPRECATED ListKey | ParseVerseList (const char *buf, const char *defaultKey=0, bool expandRange=false, bool useChapterAsVerse=false) |
SWDEPRECATED char | Persist () const |
SWDEPRECATED char | Persist (signed char ipersist) |
virtual char | popError () |
virtual void | positionChanged () |
virtual void | positionFrom (const SWKey &ikey) |
virtual void | setAutoNormalize (bool iautonorm) |
virtual void | setBook (char ibook) |
virtual void | setBookName (const char *bname) |
virtual void | setChapter (int ichapter) |
virtual void | setError (char err) |
virtual void | setIndex (long iindex) |
virtual void | setIntros (bool val) |
void | setLocale (const char *name) |
void | setLowerBound (const VerseKey &lb) |
void | setPersist (bool ipersist) |
virtual void | setPosition (SW_POSITION newpos) |
virtual void | setSuffix (char isuffix) |
virtual void | setTestament (char itestament) |
virtual void | setText (const char *ikey, bool checkNormalize) |
virtual void | setText (const char *ikey) |
void | setTreeKey (TreeKey *tk) |
void | setUpperBound (const VerseKey &ub) |
virtual void | setVerse (int iverse) |
virtual void | setVersificationSystem (const char *name) |
SWDEPRECATED char | Testament () const |
SWDEPRECATED char | Testament (char itestament) |
SWDEPRECATED long | TestamentIndex () const |
SWDEPRECATED VerseKey & | UpperBound (const VerseKey &ub) |
SWDEPRECATED VerseKey & | UpperBound () const |
void | validateCurrentLocale () const |
SWDEPRECATED int | Verse () const |
SWDEPRECATED int | Verse (int iverse) |
VerseTreeKey (TreeKey *treeKey, const char *ikey=0) | |
VerseTreeKey (TreeKey *treeKey, const SWKey *ikey) | |
VerseTreeKey (TreeKey *treeKey, const char *min, const char *max) | |
VerseTreeKey (const VerseTreeKey &k) | |
virtual | ~VerseTreeKey () |
Static Public Member Functions | |
static const char * | convertToOSIS (const char *inRef, const SWKey *defaultKey) |
Public Attributes | |
int | BMAX [2] |
bool | internalPosChange |
SW_u64 | userData |
Protected Member Functions | |
void | freshtext () const |
virtual int | getBookFromAbbrev (const char *abbr) const |
SWLocale * | getPrivateLocale () const |
virtual char | parse (bool checkNormalize=true) |
Protected Attributes | |
signed char | book |
bool | boundSet |
signed int | chapter |
char | error |
char * | keytext |
char * | localeName |
const SWClass * | myClass |
bool | persist |
char * | rangeText |
signed char | suffix |
signed char | testament |
signed int | verse |
Private Member Functions | |
void | init (TreeKey *treeKey) |
void | syncVerseToTree () const |
Private Attributes | |
long | lastGoodOffset |
TreeKey * | treeKey |
Class VerseKey The SWKey implementation used for verse based modules like Bibles or commentaries.
Definition at line 42 of file versetreekey.h.
VerseKey Constructor - initializes Instance of VerseKey
treeKey | a TreeKey which will form the basis of this VerseTreeKey |
ikey | text key (will take various forms of 'BOOK CH:VS'. See parse() for more detailed information) |
Definition at line 57 of file versetreekey.cpp.
VerseKey Constructor - initializes instance of VerseKey
treeKey | a TreeKey which will form the basis of this VerseTreeKey |
ikey | base key (will take various forms of 'BOOK CH:VS'. See parse() for more detailed information) |
Definition at line 42 of file versetreekey.cpp.
VerseKey Constructor - initializes instance of VerseKey with boundariess - see also LowerBound() and UpperBound()
treeKey | a TreeKey which will form the basis of this VerseTreeKey |
min | the lower boundary of the new VerseKey |
max | the upper boundary of the new VerseKey |
Definition at line 71 of file versetreekey.cpp.
VerseTreeKey::VerseTreeKey | ( | const VerseTreeKey & | k | ) |
VerseKey Copy Constructor - will create a new VerseKey
based on an existing one
k | the VerseKey to copy from |
Definition at line 65 of file versetreekey.cpp.
|
virtual |
VerseKey Destructor
Cleans up an instance of VerseKey
Definition at line 126 of file versetreekey.cpp.
|
inlineinherited |
Definition at line 375 of file versekey.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
virtualinherited |
clears the boundaries of this VerseKey
Reimplemented from SWKey.
Definition at line 1202 of file versekey.cpp.
|
inlineinherited |
|
virtual |
Creates a new SWKey based on the current VerseKey see also the Copy Constructor
Reimplemented from VerseKey.
Definition at line 86 of file versetreekey.cpp.
Compares another SWKey object
ikey | key to compare with this one |
Reimplemented from SWKey.
Definition at line 1768 of file versekey.cpp.
|
staticinherited |
Tries to parse a string and convert it into an OSIS reference
inRef | reference string to try to parse |
defaultKey | for details |
Definition at line 1887 of file versekey.cpp.
Copies as much info (position, range, etc.) as possible from another SWKey object
ikey | other SWKey object from which to copy |
Reimplemented from SWKey.
Definition at line 239 of file versekey.cpp.
Equates this VerseKey to another VerseKey
Definition at line 218 of file versekey.cpp.
|
virtual |
Decrements key a number of verses
steps | Number of verses to jump backward |
Reimplemented from VerseKey.
Definition at line 131 of file versetreekey.cpp.
|
inlineinherited |
|
protectedinherited |
Refresh keytext based on testament|book|chapter|verse default auto normalization to true default display headings option is false
Definition at line 357 of file versekey.cpp.
|
virtualinherited |
|
virtualinherited |
Definition at line 1275 of file versekey.cpp.
|
protectedvirtual |
Reimplemented from VerseKey.
Definition at line 92 of file versetreekey.cpp.
|
inlinevirtualinherited |
Definition at line 277 of file versekey.h.
|
virtualinherited |
Get/Set position of this key by Book Name
Definition at line 1265 of file versekey.cpp.
|
virtualinherited |
|
virtualinherited |
Definition at line 1327 of file versekey.cpp.
Use this to get the class definition and inheritance order.
Definition at line 63 of file swobject.h.
|
inlinevirtualinherited |
|
virtualinherited |
Gets index based upon current verse
Reimplemented from SWKey.
Definition at line 1681 of file versekey.cpp.
|
inherited |
gets the lower boundary of this VerseKey
Definition at line 1156 of file versekey.cpp.
|
virtualinherited |
Definition at line 1270 of file versekey.cpp.
|
virtualinherited |
Definition at line 1810 of file versekey.cpp.
|
virtualinherited |
Reimplemented from SWKey.
Definition at line 1873 of file versekey.cpp.
|
protectedinherited |
Definition at line 111 of file swkey.cpp.
|
virtualinherited |
Reimplemented from SWKey.
Definition at line 1832 of file versekey.cpp.
|
virtualinherited |
Reimplemented from SWKey.
Definition at line 1848 of file versekey.cpp.
|
virtualinherited |
Reimplemented from SWKey.
Definition at line 1248 of file versekey.cpp.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
Gets index into current testament based upon current verse
Definition at line 1704 of file versekey.cpp.
|
inlinevirtualinherited |
Definition at line 266 of file versekey.h.
|
virtualinherited |
refreshes keytext before returning if cast to a (char *) is requested
Reimplemented from SWKey.
Definition at line 1242 of file versekey.cpp.
|
virtual |
Definition at line 259 of file versetreekey.cpp.
Definition at line 254 of file versetreekey.cpp.
|
inherited |
gets the upper boundary of this VerseKey
Definition at line 1179 of file versekey.cpp.
|
virtualinherited |
|
virtualinherited |
Definition at line 1333 of file versekey.cpp.
|
virtualinherited |
Definition at line 316 of file versekey.cpp.
|
inlineinherited |
Sets/gets flag that tells VerseKey to include chapter/book/testament/module intros
iheadings | value which to set intros [MAXPOS(char)] - only get |
Definition at line 391 of file versekey.h.
|
virtual |
Increments key a number of verses
steps | Number of verses to jump forward |
Reimplemented from VerseKey.
Definition at line 159 of file versetreekey.cpp.
|
private |
Definition at line 77 of file versetreekey.cpp.
|
virtualinherited |
Definition at line 1643 of file versekey.cpp.
|
inlinevirtualinherited |
|
virtualinherited |
Definition at line 1669 of file versekey.cpp.
|
inherited |
Gets whether this key should persist in any module to which it is set otherwise just a copy will be used in the module.
|
inlinevirtual |
Whether or not this key can be ++ – incremented
Reimplemented from VerseKey.
Definition at line 102 of file versetreekey.h.
|
inlineinherited |
|
inlineinherited |
|
virtual |
Definition at line 269 of file versetreekey.cpp.
|
virtual |
Definition at line 265 of file versetreekey.cpp.
|
virtualinherited |
checks limits and normalizes if necessary (e.g. Matthew 29:47 = Mark 2:2). If last verse is exceeded, key is set to last Book CH:VS
Definition at line 1401 of file versekey.cpp.
|
inlinevirtual |
|
protectedvirtualinherited |
Parse a character array into testament|book|chapter|verse
Definition at line 326 of file versekey.cpp.
|
virtualinherited |
Definition at line 515 of file versekey.cpp.
|
inlineinherited |
Definition at line 453 of file versekey.h.
|
inlineinherited |
|
inlineinherited |
|
virtualinherited |
|
virtual |
Implements TreeKey::PositionChangeListener.
Definition at line 188 of file versetreekey.cpp.
Only repositions this VerseKey to another VerseKey
Reimplemented from SWKey.
Definition at line 183 of file versekey.cpp.
|
virtualinherited |
Sets flag that tells VerseKey to automatically normalize itself when modified
iautonorm | value which to set autonorm |
Definition at line 1648 of file versekey.cpp.
|
virtualinherited |
|
virtualinherited |
Definition at line 1582 of file versekey.cpp.
|
virtualinherited |
Sets chapter
ichapter | value which to set chapter |
Definition at line 1603 of file versekey.cpp.
|
inlinevirtualinherited |
|
virtualinherited |
Sets index based upon current verse
iindex | value to set index to |
Reimplemented from SWKey.
Definition at line 1718 of file versekey.cpp.
|
virtualinherited |
The Intros property determine whether or not to include chapter/book/testament/module intros
Definition at line 1663 of file versekey.cpp.
|
inlineinherited |
Definition at line 225 of file swkey.h.
sets the lower boundary for this VerseKey
lb | the new lower boundary for this VerseKey |
Definition at line 1112 of file versekey.cpp.
|
inherited |
Sets whether this key should persist in any module to which it is set otherwise just a copy will be used in the module.
ipersist | value which to set persist; |
|
virtual |
Positions this key
newpos | Position to set to. |
Reimplemented from VerseKey.
Definition at line 274 of file versetreekey.cpp.
|
virtualinherited |
Sets/gets verse suffix
isuffix | value which to set verse suffix |
Definition at line 1634 of file versekey.cpp.
|
virtualinherited |
Sets testament
itestament | value which to set testament |
Definition at line 1548 of file versekey.cpp.
|
inlinevirtualinherited |
Definition at line 220 of file versekey.h.
|
inlinevirtualinherited |
Sets this SWKey with a character string
ikey | string used to set this key |
Reimplemented from SWKey.
Definition at line 221 of file versekey.h.
|
inlineinherited |
sets the upper boundary for this VerseKey
ub | the new upper boundary for this VerseKey |
Definition at line 1135 of file versekey.cpp.
|
virtualinherited |
|
virtualinherited |
Definition at line 298 of file versekey.cpp.
|
private |
Definition at line 235 of file versetreekey.cpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 423 of file versekey.h.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 473 of file versekey.cpp.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 120 of file versekey.h.
|
protectedinherited |
Definition at line 96 of file versekey.h.
|
protectedinherited |
Definition at line 97 of file versekey.h.
|
mutable |
Definition at line 109 of file versetreekey.h.
|
private |
Definition at line 50 of file versetreekey.h.
Definition at line 55 of file swobject.h.
|
protectedinherited |
Definition at line 99 of file versekey.h.
|
protectedinherited |
The Testament: 0 - Module Heading; 1 - Old; 2 - New
Definition at line 95 of file versekey.h.
|
private |
Definition at line 45 of file versetreekey.h.
|
protectedinherited |
Definition at line 98 of file versekey.h.