summaryrefslogtreecommitdiff
path: root/include/versificationmgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/versificationmgr.h')
-rw-r--r--include/versificationmgr.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/versificationmgr.h b/include/versificationmgr.h
index 4ed8a62..a488d0e 100644
--- a/include/versificationmgr.h
+++ b/include/versificationmgr.h
@@ -3,7 +3,7 @@
* versification.h - definition of class VersificationMgr used for managing
* versification systems
*
- * $Id: versificationmgr.h 2833 2013-06-29 06:40:28Z chrislit $
+ * $Id: versificationmgr.h 3240 2014-07-12 16:27:35Z scribe $
*
* Copyright 2008-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -142,11 +142,12 @@ public:
int getBookNumberByOSISName(const char *bookName) const;
const Book *getBook(int number) const;
int getBookCount() const;
- void loadFromSBook(const sbook *ot, const sbook *nt, int *chMax);
+ void loadFromSBook(const sbook *ot, const sbook *nt, int *chMax, const unsigned char *mappings=NULL);
long getOffsetFromVerse(int book, int chapter, int verse) const;
char getVerseFromOffset(long offset, int *book, int *chapter, int *verse) const;
const int *getBMAX() const { return BMAX; };
long getNTStartOffset() const { return ntStartOffset; }
+ void translateVerse(const System *dstSys, const char **book, int *chapter, int *verse, int *verse_end) const;
};
VersificationMgr() { init(); }
~VersificationMgr();
@@ -154,7 +155,7 @@ public:
static void setSystemVersificationMgr(VersificationMgr *newVersificationMgr);
const StringList getVersificationSystems() const;
const System *getVersificationSystem(const char *name) const;
- void registerVersificationSystem(const char *name, const sbook *ot, const sbook *nt, int *chMax);
+ void registerVersificationSystem(const char *name, const sbook *ot, const sbook *nt, int *chMax, const unsigned char *mappings=NULL);
void registerVersificationSystem(const char *name, const TreeKey *);
};