1
/******************************************************************************
2
* This is about the simplest useful example of using the sword engine.
4
* After sword is installed, it should compile with something similar to:
6
* g++ -o simple simple.cpp `pkg-config --cflags --libs sword`
8
* If you'd like to choose the type of tag markup which sword will output
11
* #include <markupfiltmgr.h>
13
* and change your instantiation of SWMgr, below, to (e.g., for HTML):
15
* SWMgr library(0, 0, true, new MarkupFilterMgr(FMT_HTMLHREF));
17
* $Id: swmgr.h 2321 2009-04-13 01:17:00Z scribe $
19
* Copyright 1998-2009 CrossWire Bible Society (http://www.crosswire.org)
20
* CrossWire Bible Society
22
* Tempe, AZ 85280-2528
24
* This program is free software; you can redistribute it and/or modify it
25
* under the terms of the GNU General Public License as published by the
26
* Free Software Foundation version 2.
28
* This program is distributed in the hope that it will be useful, but
29
* WITHOUT ANY WARRANTY; without even the implied warranty of
30
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31
* General Public License for more details.
39
using namespace sword;
42
int main(int argc, char **argv) {
44
SWModule *darby = library.getModule("Darby");
45
darby->setKey("James 1:19");
46
cout << darby->RenderText();