~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to tests/indextest.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Glassey
  • Date: 2004-01-15 15:50:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040115155007-n9mz4x0zxrs1isd3
Tags: upstream-1.5.7
ImportĀ upstreamĀ versionĀ 1.5.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <swmgr.h>
 
2
#include <iostream>
 
3
#include <versekey.h>
 
4
#ifndef NO_SWORD_NAMESPACE
 
5
using namespace sword;
 
6
#endif
 
7
 
 
8
int main(int argc, char **argv) {
 
9
        SWMgr mymgr;
 
10
 
 
11
        SWModule *bbe = mymgr.Modules["BBE"];
 
12
 
 
13
        if (bbe) {
 
14
                VerseKey vk;
 
15
                vk.Persist(1);
 
16
                bbe->setKey(vk);
 
17
                for (; !bbe->Error(); (*bbe)++ ) {
 
18
                        std::cout << vk.NewIndex() << std::endl; 
 
19
                }
 
20
        }
 
21
        return 0;
 
22
}