[sword-svn] r1904 - in trunk: . bindings/swig

scribe at crosswire.org scribe at crosswire.org
Fri Apr 14 15:51:50 MST 2006


Author: scribe
Date: 2006-04-14 15:51:15 -0700 (Fri, 14 Apr 2006)
New Revision: 1904

Modified:
   trunk/ChangeLog
   trunk/bindings/swig/swmodule.i
Log:
	Added EntryAttribute support to SWIG bindings (from mreimer)



Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-04-03 21:59:33 UTC (rev 1903)
+++ trunk/ChangeLog	2006-04-14 22:51:15 UTC (rev 1904)
@@ -1,6 +1,9 @@
 API ChangeLog	(see the ChangeLog in each 'apps' directory for
 		app specific changes
 
+14-Apr-2006	Troy A. Griffitts <scribe at crosswire.org>
+	Added EntryAttribute support to SWIG bindings (from mreimer)
+
 29-Mar-2006	Joachim Ansorg <jansorg at crosswire.org>
 	Fixed lucene code to work with 0.9.x (tested with 0.9.10)
 

Modified: trunk/bindings/swig/swmodule.i
===================================================================
--- trunk/bindings/swig/swmodule.i	2006-04-03 21:59:33 UTC (rev 1903)
+++ trunk/bindings/swig/swmodule.i	2006-04-14 22:51:15 UTC (rev 1904)
@@ -3,6 +3,15 @@
 using namespace sword;
 %}
 
+typedef std::map < SWBuf, SWBuf, std::less < SWBuf > > AttributeValue;
+typedef std::map < SWBuf, AttributeValue, std::less < SWBuf > > AttributeList;
+typedef std::map < SWBuf, AttributeList, std::less < SWBuf > > AttributeTypeList;
+
+%template(attrval) std::map < SWBuf, SWBuf, std::less < SWBuf > > AttributeValue;
+%template(attrlist) std::map < SWBuf, AttributeValue, std::less < SWBuf > > AttributeList;
+%template(attrtypelist) std::map < SWBuf, AttributeList, std::less < SWBuf > > AttributeTypeList;
+
+
 class SWModule {
 public:
   bool terminateSearch;



More information about the sword-cvs mailing list