aboutsummaryrefslogtreecommitdiffstats
path: root/tests/modtest.cpp
blob: d3bd701b1b4856b58283e2eb625b3a16298331e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <swmgr.h>
#include <swtext.h>
#include <iostream>
#ifndef NO_SWORD_NAMESPACE
using namespace sword;
#endif

int main(int argc, char **argv) {
	SWMgr mymgr;
	ModMap::iterator it;
	SWModule *module = mymgr.Modules["RWP"];
	VerseKey parser;
	ListKey lk = parser.ParseVerseList("mal4:6-rev", parser, true);
	lk.Persist(1);
	module->SetKey(lk);

	(*module) = TOP;
	std::cout << module->KeyText() << "\n";
	return 0;
}