The SWORD Project
1.9.0.svnversion
|
#include <treekey.h>
Classes | |
class | PositionChangeListener |
Public Member Functions | |
virtual void | append ()=0 |
virtual void | appendChild ()=0 |
virtual void | assureKeyPath (const char *keyPath=0) |
virtual void | clearBounds () const |
virtual SWKey * | clone () const |
virtual int | compare (const SWKey &ikey)=0 |
virtual void | copyFrom (const SWKey &ikey) |
virtual void | decrement (int steps=1)=0 |
virtual bool | equals (const SWKey &ikey) |
SWDEPRECATED char | Error () |
virtual bool | firstChild ()=0 |
const SWClass * | getClass () const |
virtual char | getError () const |
virtual long | getIndex () const |
virtual int | getLevel () |
char * | getLocale () const |
virtual const char * | getLocalName ()=0 |
virtual unsigned long | getOffset () const =0 |
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 =0 |
virtual const char * | getUserData (int *size=0) const =0 |
virtual bool | hasChildren ()=0 |
virtual void | increment (int steps=1)=0 |
virtual void | insertBefore ()=0 |
virtual bool | isBoundSet () const |
bool | isPersist () const |
virtual bool | isTraversable () const |
virtual bool | nextSibling ()=0 |
virtual bool | parent ()=0 |
SWDEPRECATED char | Persist () const |
SWDEPRECATED char | Persist (signed char ipersist) |
virtual char | popError () |
virtual void | positionFrom (const SWKey &ikey) |
virtual bool | previousSibling ()=0 |
virtual void | remove ()=0 |
virtual void | root ()=0 |
virtual void | save () |
virtual void | setError (char err) |
virtual void | setIndex (long iindex) |
void | setLocale (const char *name) |
virtual const char * | setLocalName (const char *)=0 |
virtual void | setOffset (unsigned long offset)=0 |
void | setPersist (bool ipersist) |
virtual void | setPosition (SW_POSITION p)=0 |
void | setPositionChangeListener (PositionChangeListener *pcl) |
virtual void | setText (const char *ikey)=0 |
virtual void | setUserData (const char *userData, int size=0)=0 |
TreeKey () | |
~TreeKey () | |
Public Attributes | |
class TreeKey::PositionChangeListener * | posChangeListener |
SW_u64 | userData |
Protected Member Functions | |
SWLocale * | getPrivateLocale () const |
void | positionChanged () |
Protected Attributes | |
bool | boundSet |
char | error |
char * | keytext |
char * | localeName |
const SWClass * | myClass |
bool | persist |
char * | rangeText |
SWBuf | unsnappedKeyText |
Private Member Functions | |
void | init () |
Class TreeKey The base class for all tree-based key implementations in Sword.
|
pure virtual |
Implemented in TreeKeyIdx.
|
pure virtual |
Implemented in TreeKeyIdx.
|
virtual |
Set the key to this path. If the path doesn't exist, then nodes are created as necessary
keyPath | path to set/create; if unsupplied, then use any unsnapped setText value. |
Definition at line 41 of file treekey.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 from SWKey.
Implemented in TreeKeyIdx.
|
pure virtual |
Decrements key a number of entry positions This is only valid if isTraversable is true
steps | Number of entries to jump backward |
Reimplemented from SWKey.
Implemented in TreeKeyIdx.
|
inlineinherited |
|
pure virtual |
Use this to get the class definition and inheritance order.
Definition at line 63 of file swobject.h.
|
inlinevirtualinherited |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Implemented in TreeKeyIdx.
|
pure virtual |
Implemented in TreeKeyIdx.
|
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 |
|
pure virtual |
|
pure virtual |
Implemented in TreeKeyIdx.
|
pure virtual |
|
pure virtual |
Increments key a number of entry positions This is only valid if isTraversable is true
steps | Number of entries to jump forward |
Reimplemented from SWKey.
Implemented in TreeKeyIdx.
|
private |
Definition at line 34 of file treekey.cpp.
|
pure virtual |
Implemented in TreeKeyIdx.
|
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.
|
inlinevirtual |
Whether or not this key can be ++ – incremented
Reimplemented from SWKey.
Reimplemented in TreeKeyIdx.
|
pure virtual |
|
pure virtual |
|
inlineinherited |
|
inlineinherited |
|
virtualinherited |
|
inlineprotected |
|
pure virtual |
|
pure virtual |
Implemented in TreeKeyIdx.
|
pure virtual |
Go to the root node
Implemented in TreeKeyIdx.
|
inlinevirtual |
|
inlinevirtualinherited |
|
inlinevirtual |
|
inlineinherited |
Definition at line 225 of file swkey.h.
Implemented in TreeKeyIdx.
|
pure virtual |
Implemented in TreeKeyIdx.
|
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; |
|
pure virtual |
Reimplemented from SWKey.
Implemented in TreeKeyIdx.
|
inline |
|
pure virtual |
Sets this SWKey with a character string
ikey | string used to set this key |
Reimplemented from SWKey.
Implemented in TreeKeyIdx.
|
pure virtual |
Implemented in TreeKeyIdx.
Definition at line 55 of file swobject.h.
class TreeKey::PositionChangeListener * TreeKey::posChangeListener |