1
/******************************************************************************
2
* Simple example to show how to see which options are available from the
3
* installed set of modules and their possible settings.
5
* $Id: swmgr.h 2321 2009-04-13 01:17:00Z scribe $
7
* Copyright 1998-2009 CrossWire Bible Society (http://www.crosswire.org)
8
* CrossWire Bible Society
10
* Tempe, AZ 85280-2528
12
* This program is free software; you can redistribute it and/or modify it
13
* under the terms of the GNU General Public License as published by the
14
* Free Software Foundation version 2.
16
* This program is distributed in the hope that it will be useful, but
17
* WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* General Public License for more details.
26
using sword::StringList;
29
int main(int argc, char **argv)
33
StringList options = library.getGlobalOptions();
34
for (StringList::const_iterator it = options.begin(); it != options.end(); it++) {
35
cout << *it << " (" << library.getGlobalOptionTip(*it) << ")\n";
36
StringList optionValues = library.getGlobalOptionValues(*it);
37
for (StringList::const_iterator it2 = optionValues.begin(); it2 != optionValues.end(); it2++) {
38
cout << "\t" << *it2 << "\n";