The SWORD Project
1.9.0.svnversion
|
#include <swkey.h>
Classes | |
class | LocaleCache |
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) |
SWKey (const char *ikey=0) | |
SWKey (const SWKey &k) | |
virtual | ~SWKey () |
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 () |
Private Attributes | |
long | index |
SWLocale * | locale |
Static Private Attributes | |
static LocaleCache | localeCache |
SWKey is used for positioning an SWModule to a specific entry. It always represents a possible location into a module and can additionally represent a domain of entries (e.g. "John 3:16" in the domain "John 1:1 - Mark 5:25")
SWKey::SWKey | ( | const char * | ikey = 0 | ) |
initializes instance of SWKey from a string All keys can be reduced to a string representation which should be able to be used to again set the key to the same position
ikey | string to use for initializing this new key |
Definition at line 43 of file swkey.cpp.
Copy Constructor
k | The SWKey object to copy. |
Definition at line 55 of file swkey.cpp.
|
virtual |
|
inlinevirtual |
|
virtual |
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.
|
virtual |
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.
|
inline |
Use this to get the class definition and inheritance order.
Definition at line 63 of file swobject.h.
|
inlinevirtual |
|
virtual |
|
protected |
Definition at line 111 of file swkey.cpp.
|
virtual |
Reimplemented in VerseKey, and ListKey.
Definition at line 193 of file swkey.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
returns string representation of this key
Reimplemented in VerseKey, ListKey, TreeKey, and TreeKeyIdx.
|
virtual |
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.
bool SWKey::isPersist | ( | ) | const |
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 in VerseKey, ListKey, TreeKey, TreeKeyIdx, and VerseTreeKey.
|
inline |
|
inline |
|
virtual |
|
inlinevirtual |
|
inline |
Definition at line 225 of file swkey.h.
void SWKey::setPersist | ( | bool | ipersist | ) |
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 |
Reimplemented in VerseKey, ListKey, TreeKey, VerseTreeKey, and TreeKeyIdx.
Definition at line 228 of file swkey.cpp.
|
virtual |
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.
|
staticprivate |
Definition at line 55 of file swobject.h.