[sword-svn] r2016 - in trunk/bindings/swig: . vstudio
lefticus at www.crosswire.org
lefticus at www.crosswire.org
Tue Nov 28 19:09:20 MST 2006
Author: lefticus
Date: 2006-11-28 19:09:19 -0700 (Tue, 28 Nov 2006)
New Revision: 2016
Modified:
trunk/bindings/swig/swmgr.i
trunk/bindings/swig/vstudio/SwigSword.csproj
Log:
Add support for global options
Modified: trunk/bindings/swig/swmgr.i
===================================================================
--- trunk/bindings/swig/swmgr.i 2006-11-28 20:59:46 UTC (rev 2015)
+++ trunk/bindings/swig/swmgr.i 2006-11-29 02:09:19 UTC (rev 2016)
@@ -1,7 +1,9 @@
%include "std_map.i"
+%include "std_vector.i"
%template() std::pair<sword::SWBuf, sword::SWModule*>;
%template(ModuleMap) std::map<sword::SWBuf, sword::SWModule*>;
+%template(StringVector) std::vector < sword::SWBuf >;
%{
#include <swmgr.h>
@@ -14,6 +16,16 @@
%include "swmgr.h"
%extend sword::SWMgr {
+ std::vector < sword::SWBuf > getGlobalOptionsVector() {
+ std::list<sword::SWBuf> l(self->getGlobalOptions());
+ return std::vector< sword::SWBuf >(l.begin(), l.end());
+ }
+
+ std::vector < sword::SWBuf > getGlobalOptionValuesVector(const char *option) {
+ std::list<sword::SWBuf> l(self->getGlobalOptionValues(option));
+ return std::vector< sword::SWBuf >(l.begin(), l.end());
+ }
+
std::map<sword::SWBuf, sword::SWModule*> &getModules() {
return self->Modules;
}
Modified: trunk/bindings/swig/vstudio/SwigSword.csproj
===================================================================
--- trunk/bindings/swig/vstudio/SwigSword.csproj 2006-11-28 20:59:46 UTC (rev 2015)
+++ trunk/bindings/swig/vstudio/SwigSword.csproj 2006-11-29 02:09:19 UTC (rev 2016)
@@ -49,6 +49,7 @@
<Compile Include="RawLD4.cs" />
<Compile Include="RawText.cs" />
<Compile Include="sbook.cs" />
+ <Compile Include="StringVector.cs" />
<Compile Include="SWBuf.cs" />
<Compile Include="SWClass.cs" />
<Compile Include="SWCom.cs" />
More information about the sword-cvs
mailing list