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

« back to all changes in this revision

Viewing changes to tests/modtest.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 <swtext.h>
 
3
#include <iostream>
 
4
#ifndef NO_SWORD_NAMESPACE
 
5
using namespace sword;
 
6
#endif
 
7
 
 
8
int main(int argc, char **argv) {
 
9
        SWMgr mymgr;
 
10
        ModMap::iterator it;
 
11
        SWModule *module = mymgr.Modules["RWP"];
 
12
        VerseKey parser;
 
13
        ListKey lk = parser.ParseVerseList("mal4:6-rev", parser, true);
 
14
        lk.Persist(1);
 
15
        module->SetKey(lk);
 
16
 
 
17
        (*module) = TOP;
 
18
        std::cout << module->KeyText() << "\n";
 
19
        return 0;
 
20
}