diff options
author | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-08-14 09:57:17 +0000 |
commit | daa67ff1f728c07f2a116ee9a9f4505479ca6808 (patch) | |
tree | c224a537d30480002ae0560cc9104b543b4d1b5e /tests/keycast.cpp | |
parent | 6d6973e035aac5ec1676efccd5b8ada70c40b639 (diff) | |
download | sword-sf-cvs-daa67ff1f728c07f2a116ee9a9f4505479ca6808.tar.gz |
Initial import from crosswire CVS for syncingimport-1.1.1
Diffstat (limited to 'tests/keycast.cpp')
-rw-r--r-- | tests/keycast.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/keycast.cpp b/tests/keycast.cpp new file mode 100644 index 0000000..4245592 --- /dev/null +++ b/tests/keycast.cpp @@ -0,0 +1,30 @@ +#include <swmgr.h> +#include <iostream> + +int main (int argc, char* argv[]) { + SWMgr mgr; + +//the commented out code works +/* + OptionsList globalOptions = mgr.getGlobalOptions(); + for (OptionsList::iterator it = globalOptions.begin(); it != globalOptions.end(); it++) { + std::cout << *it << std::endl; + + OptionsList values = mgr.getGlobalOptionValues((*it).c_str()); + for (OptionsList::iterator it2 = values.begin(); it2 != values.end(); it2++) { + std::cout << "\t"<< *it2 << std::endl; + } + } +*/ + +//crashes + OptionsList values = mgr.getGlobalOptionValues("Footnotes"); + for (OptionsList::iterator it2 = values.begin(); it2 != values.end(); it2++) { + std::cout << "\t"<< *it2 << std::endl; + } +}; + + + + + |