blob: c65cb12b29435e0bb7eb0ef255da2a9005d90653 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include <swmgr.h>
#include <swtext.h>
#include <iostream>
int main(int argc, char **argv) {
SWMgr mymgr;
ModMap::iterator it;
SWModule *module;
for (it = mymgr.Modules.begin(); it != mymgr.Modules.end(); it++) {
module = it->second;
if (!strcmp(module->Type(), "Biblical Texts")) {
std::cout << module->Name() << "\n";
for (*module = TOP; (!module->Key().Error()); ((VerseKey *)&module->Key())->Book(((VerseKey *)&module->Key())->Book()+1)) {
std::cout << module->KeyText() << "\n";
}
}
if (!strcmp(module->Type(), "Commentaries")) {
std::cout << module->Name() << "\n";
for (*module = TOP; (!module->Error()); (*module)--) {
std::cout << module->KeyText() << "\n";
}
}
}
return 0;
}
|