From daa67ff1f728c07f2a116ee9a9f4505479ca6808 Mon Sep 17 00:00:00 2001 From: danglassey Date: Wed, 14 Aug 2002 09:57:17 +0000 Subject: Initial import from crosswire CVS for syncing --- tests/keycast.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/keycast.cpp (limited to 'tests/keycast.cpp') 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 +#include + +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; + } +}; + + + + + -- cgit