2
* Copyright 2009 CrossWire Bible Society (http://www.crosswire.org)
3
* CrossWire Bible Society
7
* This program is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License as published by the
9
* Free Software Foundation version 2.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
22
#ifndef NO_SWORD_NAMESPACE
23
using namespace sword;
26
int main(int argc, char **argv) {
29
RawText::createModule(".");
43
mod << "Module heading text";
50
mod << "OT heading text";
57
mod << "Gen heading text";
64
mod << "Gen 1 heading text";
71
mod << "Gen 1:1 text";
79
std::cout << "Module heading text ?= " << (const char*)mod << std::endl;
86
std::cout << "OT heading text ?= " << (const char*)mod << std::endl;
93
std::cout << "Gen heading text ?= " << (const char*)mod << std::endl;
100
std::cout << "Gen 1 heading text ?= " << (const char*)mod << std::endl;
107
std::cout << "Gen 1:1 text ?= " << (const char*)mod << std::endl;
110
SWModule *mhc = mymgr.Modules["MHC"];
118
std::cout << vk << ":\n";
120
std::cout << (const char *) mhc->Key() << ":\n";
121
std::cout << (const char *) *mhc << "\n";