#include <treekey.h>
Inheritance diagram for sword::TreeKey:


Public Member Functions | |
| virtual const char * | getLocalName ()=0 |
| virtual const char * | setLocalName (const char *)=0 |
| virtual const char * | getUserData (int *size=0)=0 |
| virtual void | setUserData (const char *userData, int size=0)=0 |
| virtual const char * | getFullName () const=0 |
| virtual void | root ()=0 |
| virtual bool | parent ()=0 |
| virtual bool | firstChild ()=0 |
| virtual bool | nextSibling ()=0 |
| virtual bool | previousSibling ()=0 |
| virtual bool | hasChildren ()=0 |
| virtual void | append ()=0 |
| virtual void | appendChild ()=0 |
| virtual void | insertBefore ()=0 |
| virtual void | remove ()=0 |
| virtual void | setOffset (unsigned long offset)=0 |
| virtual unsigned long | getOffset () const=0 |
| virtual void | setText (const char *ikey)=0 |
| Equates this SWKey to a character string. | |
| virtual void | setPosition (SW_POSITION p)=0 |
| virtual const char * | getText () const=0 |
| returns text key if (char *) cast is requested | |
| virtual int | compare (const SWKey &ikey)=0 |
| Compares another VerseKey object. | |
| virtual void | decrement (int steps=1)=0 |
| Decrements key a number of entries. | |
| virtual void | increment (int steps=1)=0 |
| Increments key a number of entries. | |
| virtual char | Traversable () |
| virtual long | Index () const |
| Use this function to get te current position withing a module. | |
| virtual long | Index (long iindex) |
| SWKey & | operator= (const char *ikey) |
| SWKey & | operator= (const SWKey &ikey) |
| SWKey & | operator= (SW_POSITION pos) |
| operator const char * () const | |
| bool | operator== (const SWKey &ikey) |
| bool | operator!= (const SWKey &ikey) |
| virtual bool | operator> (const SWKey &ikey) |
| virtual bool | operator< (const SWKey &ikey) |
| virtual bool | operator>= (const SWKey &ikey) |
| virtual bool | operator<= (const SWKey &ikey) |
| SWKey & | operator-= (int steps) |
| SWKey & | operator+= (int steps) |
| SWKey & | operator++ (int) |
| SWKey & | operator-- (int) |
Private Member Functions | |
| void | init () |
Static Private Attributes | |
| SWClass | classdef |
|
|
Compares another VerseKey object.
Reimplemented from sword::SWKey. Implemented in sword::TreeKeyIdx. |
|
|
Decrements key a number of entries.
Reimplemented from sword::SWKey. Implemented in sword::TreeKeyIdx. |
|
|
Increments key a number of entries.
Reimplemented from sword::SWKey. Implemented in sword::TreeKeyIdx. |
|
|
Use this function to get te current position withing a module. Here's a small example how to use this function and Index (long). This function uses the GerLut module and chooses a random verse from the Bible and returns it. const char* randomVerse() { VerseKey vk; SWMgr mgr; LocaleMgr::systemLocaleMgr.setDefaultLocaleName("de"); SWModule* module = mgr->Modules("GerLut"); srand( time(0) ); const double newIndex = (double(rand())/RAND_MAX)*(24108+8224); vk.Index(newIndex); module->setKey(vk); char* text; sprintf(text, "%s: %s",(const char*)vk ,module->StripText(&vk)); return text; Reimplemented from sword::SWKey. |
|
|
Equates this SWKey to a character string.
Reimplemented from sword::SWKey. Implemented in sword::TreeKeyIdx. |
1.3-rc3