[sword-cvs] sword/bindings/corba/orbitcpp testclient.cpp,1.9,1.10

sword@www.crosswire.org sword@www.crosswire.org
Tue, 13 Apr 2004 12:50:06 -0700


Update of /cvs/core/sword/bindings/corba/orbitcpp
In directory www:/tmp/cvs-serv12518

Modified Files:
	testclient.cpp 
Log Message:


Index: testclient.cpp
===================================================================
RCS file: /cvs/core/sword/bindings/corba/orbitcpp/testclient.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- testclient.cpp	24 Nov 2003 09:16:40 -0000	1.9
+++ testclient.cpp	13 Apr 2004 19:50:04 -0000	1.10
@@ -32,24 +32,22 @@
 		std::cout << "ConfigPath: " << mgr->getConfigPath() << "\n";
 		modInfoList = mgr->getModInfoList();
 		std::cout << "sequence length: " << modInfoList->length() << "\n";
-/*
 		for (int i = 0; i < modInfoList->length(); i++) {
 			std::cout << (*modInfoList)[i].name << ": " << (*modInfoList)[i].category << ": " << (*modInfoList)[i].language << "\n";
-			module = mgr->getModuleByName((*modInfoList)[i].name);
-			module->setKeyText("jas1:19");
-			std::cout << module->getRenderText() << "\n";
+			if (!strncmp((*modInfoList)[i].category, "Bibl", 4)) {
+				module = mgr->getModuleByName((*modInfoList)[i].name);
+				module->setKeyText("jas1:19");
+				std::cout << module->getRenderText() << "\n";
+			}
+			std::cout << "\n";
 		}
-*/
-		module = mgr->getModuleByName("NASB");
-		module->setKeyText("jn3:1");
-		std::cout << module->getRenderText();
 		/*
 		swordorb::SearchHitList *searchResults;
 		searchResults = module->search("God love world", swordorb::MULTIWORD, 0, "");
 		for (int i = 0; i < searchResults->length(); i++) {
 			std::cout << (*searchResults)[i].key << "\n";
 		}
-		*/;
+		*/