The SWORD Project
1.9.0.svnversion
|
#include <strkey.h>
Public Member Functions | |
virtual void | clearBounds () const |
virtual SWKey * | clone () const |
virtual int | compare (const SWKey &ikey) |
virtual void | copyFrom (const SWKey &ikey) |
virtual void | decrement (int steps=1) |
virtual bool | equals (const SWKey &ikey) |
SWDEPRECATED char | Error () |
const SWClass * | getClass () const |
virtual char | getError () const |
virtual long | getIndex () const |
char * | getLocale () const |
virtual const char * | getOSISRefRangeText () const |
virtual const char * | getRangeText () const |
virtual const char * | getShortRangeText () const |
virtual const char * | getShortText () const |
virtual const char * | getText () const |
virtual void | increment (int steps=1) |
virtual bool | isBoundSet () const |
bool | isPersist () const |
virtual bool | isTraversable () const |
SWDEPRECATED char | Persist () const |
SWDEPRECATED char | Persist (signed char ipersist) |
virtual char | popError () |
virtual void | positionFrom (const SWKey &ikey) |
virtual void | setError (char err) |
virtual void | setIndex (long iindex) |
void | setLocale (const char *name) |
void | setPersist (bool ipersist) |
virtual void | setPosition (SW_POSITION) |
virtual void | setText (const char *ikey) |
StrKey (const char *ikey=0) | |
virtual | ~StrKey () |
Public Attributes | |
SW_u64 | userData |
Protected Member Functions | |
SWLocale * | getPrivateLocale () const |
Protected Attributes | |
bool | boundSet |
char | error |
char * | keytext |
char * | localeName |
const SWClass * | myClass |
bool | persist |
char * | rangeText |
Private Member Functions | |
void | init () |
a standard string key class (used for modules that index on single strings e.g., for lexicons and dictionaries
StrKey::StrKey | ( | const char * | ikey = 0 | ) |
c-tor which initialized a StrKey object with a simple string
ikey | text key |
Definition at line 41 of file strkey.cpp.
|
virtual |
Definition at line 58 of file strkey.cpp.
|
inlinevirtualinherited |
|
virtualinherited |
Returns a new exact clone of this SWKey object. This allocates a new SWKey which must be deleted by the caller
Reimplemented in VerseKey, VerseTreeKey, TreeKeyIdx, and ListKey.
Compares this key object to another SWKey object
ikey | key to compare with this one |
Reimplemented in VerseKey, TreeKey, and TreeKeyIdx.
|
virtualinherited |
Decrements key a number of entry positions This is only valid if isTraversable is true
steps | Number of entries to jump backward |
Reimplemented in VerseKey, ListKey, TreeKey, TreeKeyIdx, and VerseTreeKey.
Definition at line 261 of file swkey.cpp.
|
inlineinherited |
Use this to get the class definition and inheritance order.
Definition at line 63 of file swobject.h.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
virtualinherited |
|
protectedinherited |
Definition at line 111 of file swkey.cpp.
|
virtualinherited |
Reimplemented in VerseKey, and ListKey.
Definition at line 193 of file swkey.cpp.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
virtualinherited |
returns string representation of this key
Reimplemented in VerseKey, ListKey, TreeKey, and TreeKeyIdx.
|
virtualinherited |
Increments key a number of entry positions This is only valid if isTraversable is true
steps | Number of entries to jump forward |
Reimplemented in VerseKey, ListKey, TreeKey, TreeKeyIdx, and VerseTreeKey.
Definition at line 248 of file swkey.cpp.
|
private |
Definition at line 47 of file strkey.cpp.
|
inlinevirtualinherited |
|
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.
|
inlinevirtualinherited |
Whether or not this key can be ++ – incremented
Reimplemented in VerseKey, ListKey, TreeKey, TreeKeyIdx, and VerseTreeKey.
|
inlineinherited |
|
inlineinherited |
|
virtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlineinherited |
Definition at line 225 of file swkey.h.
|
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; |
|
virtualinherited |
Reimplemented in VerseKey, ListKey, TreeKey, VerseTreeKey, and TreeKeyIdx.
Definition at line 228 of file swkey.cpp.
|
virtualinherited |
Sets this SWKey with a character string
ikey | string used to set this key |
Reimplemented in VerseKey, ListKey, TreeKey, and TreeKeyIdx.
Definition at line 162 of file swkey.cpp.
Definition at line 55 of file swobject.h.