[sword-svn] r1905 - trunk/bindings/swig
scribe at crosswire.org
scribe at crosswire.org
Sat Apr 15 15:35:33 MST 2006
Author: scribe
Date: 2006-04-15 15:35:29 -0700 (Sat, 15 Apr 2006)
New Revision: 1905
Modified:
trunk/bindings/swig/swmodule.i
Log:
Updated patch for entry Attributes from mreimer
Modified: trunk/bindings/swig/swmodule.i
===================================================================
--- trunk/bindings/swig/swmodule.i 2006-04-14 22:51:15 UTC (rev 1904)
+++ trunk/bindings/swig/swmodule.i 2006-04-15 22:35:29 UTC (rev 1905)
@@ -3,14 +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;
+%include "std_map.i"
-%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;
+typedef std::map < SWBuf, SWBuf > AttributeValue;
+typedef std::map < SWBuf, AttributeValue > AttributeList;
+typedef std::map < SWBuf, AttributeList > AttributeTypeList;
+%template(AttributeValue) std::map<SWBuf, SWBuf>;
+%template(AttributeList) std::map<SWBuf, AttributeValue>;
+%template(AttributeTypeList) std::map<SWBuf, AttributeList>;
class SWModule {
public:
More information about the sword-cvs
mailing list