[sword-svn] r2795 - in trunk/bindings/corba: . omniorbcpp

scribe at crosswire.org scribe at crosswire.org
Thu Apr 11 09:16:15 MST 2013


Author: scribe
Date: 2013-04-11 09:16:15 -0700 (Thu, 11 Apr 2013)
New Revision: 2795

Modified:
   trunk/bindings/corba/omniorbcpp/swordorb-impl.cpp
   trunk/bindings/corba/swordorb.idl
Log:
added osis ref as special return child of versekey modules


Modified: trunk/bindings/corba/omniorbcpp/swordorb-impl.cpp
===================================================================
--- trunk/bindings/corba/omniorbcpp/swordorb-impl.cpp	2013-04-11 15:50:00 UTC (rev 2794)
+++ trunk/bindings/corba/omniorbcpp/swordorb-impl.cpp	2013-04-11 16:16:15 UTC (rev 2795)
@@ -237,7 +237,7 @@
 
 	sword::VerseKey *vkey = SWDYNAMIC_CAST(VerseKey, key);
 	if (vkey) {
-		retVal->length(7);
+		retVal->length(8);
 		SWBuf num;
 		num.appendFormatted("%d", vkey->getTestament());
 		(*retVal)[0] = CORBA::string_dup(num.c_str());
@@ -257,6 +257,7 @@
 		num.appendFormatted("%d", vkey->getVerseMax());
 		(*retVal)[5] = CORBA::string_dup(num.c_str());
 		(*retVal)[6] = CORBA::string_dup(vkey->getBookName());
+		(*retVal)[7] = CORBA::string_dup(vkey->getOSISRef());
 	}
 	else {
 		TreeKeyIdx *tkey = SWDYNAMIC_CAST(TreeKeyIdx, key);

Modified: trunk/bindings/corba/swordorb.idl
===================================================================
--- trunk/bindings/corba/swordorb.idl	2013-04-11 15:50:00 UTC (rev 2794)
+++ trunk/bindings/corba/swordorb.idl	2013-04-11 16:16:15 UTC (rev 2795)
@@ -75,7 +75,7 @@
 
 	// This method returns child nodes for a genbook,
 	// but has special handling if called on a VerseKey module:
-	//  [0..6] [testament, book, chapter, verse, chapterMax, verseMax, bookName]
+	//  [0..7] [testament, book, chapter, verse, chapterMax, verseMax, bookName, osisRef]
 	StringList    getKeyChildren();
 
 	string        getKeyParent();




More information about the sword-cvs mailing list