aboutsummaryrefslogblamecommitdiffstats
path: root/tests/indextest.cpp
blob: 4c9f65651ab6143e42d14edb2d38c9f148c77127 (plain) (tree)
1
2
3
4
5
6


                     


                          








                                             
                                





                                                                 
#include <swmgr.h>
#include <iostream>
#include <versekey.h>
#ifndef NO_SWORD_NAMESPACE
using namespace sword;
#endif

int main(int argc, char **argv) {
	SWMgr mymgr;

	SWModule *bbe = mymgr.Modules["BBE"];

	if (bbe) {
		VerseKey vk;
		vk.Persist(1);
		bbe->setKey(vk);
		for (; !bbe->Error(); (*bbe)++ ) {
			std::cout << vk.NewIndex() << std::endl; 
		}
	}
	return 0;
}