aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/swig/versekey.i
diff options
context:
space:
mode:
authordanglassey <danglassey>2002-08-14 09:57:17 +0000
committerdanglassey <danglassey>2002-08-14 09:57:17 +0000
commitc9458897ebbb739d8db83c80e06512d8a612f743 (patch)
treef8c5381045887e34388cc6b26cfccc254bf766dc /bindings/swig/versekey.i
downloadsword-sf-cvs-c9458897ebbb739d8db83c80e06512d8a612f743.tar.gz
*** empty log message ***
Diffstat (limited to 'bindings/swig/versekey.i')
-rw-r--r--bindings/swig/versekey.i51
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;
+};