diff options
Diffstat (limited to 'tests/versemgrtest.cpp')
-rw-r--r-- | tests/versemgrtest.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/versemgrtest.cpp b/tests/versemgrtest.cpp index 8d5ec98..1b51763 100644 --- a/tests/versemgrtest.cpp +++ b/tests/versemgrtest.cpp @@ -1,5 +1,10 @@ -/* - * Copyright 2009 CrossWire Bible Society (http://www.crosswire.org) +/****************************************************************************** + * + * versemgrtest.cpp - + * + * $Id: versemgrtest.cpp 2833 2013-06-29 06:40:28Z chrislit $ + * + * Copyright 2009-2013 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society * P. O. Box 2528 * Tempe, AZ 85280-2528 @@ -19,7 +24,7 @@ #include <stdio.h> #include <stdlib.h> -#include <versemgr.h> +#include <versificationmgr.h> #ifndef NO_SWORD_NAMESPACE using namespace sword; #endif @@ -31,10 +36,10 @@ int main(int argc, char **argv) { const char *v11n = (argc > 1) ? argv[1] : "KJV"; - VerseMgr *vmgr = VerseMgr::getSystemVerseMgr(); - const VerseMgr::System *system = vmgr->getVersificationSystem(v11n); + VersificationMgr *vmgr = VersificationMgr::getSystemVersificationMgr(); + const VersificationMgr::System *system = vmgr->getVersificationSystem(v11n); int bookCount = system->getBookCount(); - const VerseMgr::Book *lastBook = system->getBook(bookCount-1); + const VersificationMgr::Book *lastBook = system->getBook(bookCount-1); int chapMax = lastBook->getChapterMax(); int verseMax = lastBook->getVerseMax(chapMax); long offsetMax = system->getOffsetFromVerse(bookCount-1, chapMax, verseMax); |