diff options
author | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
commit | c9458897ebbb739d8db83c80e06512d8a612f743 (patch) | |
tree | f8c5381045887e34388cc6b26cfccc254bf766dc /bindings/swig/versekey.i | |
download | sword-sf-cvs-c9458897ebbb739d8db83c80e06512d8a612f743.tar.gz |
*** empty log message ***
Diffstat (limited to 'bindings/swig/versekey.i')
-rw-r--r-- | bindings/swig/versekey.i | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/bindings/swig/versekey.i b/bindings/swig/versekey.i new file mode 100644 index 0000000..f50f908 --- /dev/null +++ b/bindings/swig/versekey.i @@ -0,0 +1,51 @@ +%{ + #include "versekey.h" +%} + +class VerseKey : public SWKey { +public: + VerseKey(const char *ikey = 0); + //VerseKey(const SWKey * ikey); + //VerseKey(const char *min, const char *max); + //VerseKey(const VerseKey &k); + virtual ~VerseKey(); + + virtual SWKey *clone() const; + +//bound management +// VerseKey & LowerBound(const char *lb); +// VerseKey & UpperBound(const char *ub); + VerseKey & LowerBound() const; + VerseKey & UpperBound() const; + void ClearBounds(); + +//data functions + virtual void decrement(int step); + virtual void increment(int step); + virtual char Traversable() { return 1; } + + virtual const char *getBookName() const; + virtual const char *getBookAbbrev() const; + + virtual char Testament() const; + virtual char Book() const; + virtual int Chapter() const; + virtual int Verse() const; + + //virtual char Testament(char itestament); +// virtual char Book(char ibook); +// virtual int Chapter(int ichapter); +// virtual int Verse(int iverse); + + virtual void Normalize(char autocheck = 0); + virtual char AutoNormalize(char iautonorm = MAXPOS (char)); + + virtual char Headings(char iheadings = MAXPOS (char)); + virtual const char *getOSISRef() const; + + virtual int compare(const SWKey & ikey); + virtual int _compare(const VerseKey & ikey); + + virtual void setLocale(const char *name); + virtual const char *getLocale() const; +}; |