Rename feature_interface.i to swiginterface.i

This commit is contained in:
William S Fulton 2016-03-03 08:43:52 +00:00
commit 5cf20086a4
5 changed files with 21 additions and 3 deletions

View file

@ -2,7 +2,7 @@
%module multiple_inheritance_abstract %module multiple_inheritance_abstract
#if defined(SWIGJAVA) || defined(SWIGCSHARP) #if defined(SWIGJAVA) || defined(SWIGCSHARP)
%include "feature_interface.i" %include "swiginterface.i"
%interface_impl(Space::ABase1) %interface_impl(Space::ABase1)
%interface_impl(Space::CBase1) %interface_impl(Space::CBase1)
%interface_impl(Space::CBase2) %interface_impl(Space::CBase2)

View file

@ -1,7 +1,7 @@
%module multiple_inheritance_interfaces %module multiple_inheritance_interfaces
#if defined(SWIGJAVA) || defined(SWIGCSHARP) #if defined(SWIGJAVA) || defined(SWIGCSHARP)
%include "feature_interface.i" %include "swiginterface.i"
%interface_custom("A", "IA", IA) %interface_custom("A", "IA", IA)
%interface_custom("B", "IB", IB) %interface_custom("B", "IB", IB)
%interface_custom("%(strip:[I])s", "I%s", IC) // same as %interface_custom("C", "IC", IC) %interface_custom("%(strip:[I])s", "I%s", IC) // same as %interface_custom("C", "IC", IC)

View file

@ -7,7 +7,7 @@
%nspace; %nspace;
#if defined(SWIGJAVA) || defined(SWIGCSHARP) #if defined(SWIGJAVA) || defined(SWIGCSHARP)
%include "feature_interface.i" %include "swiginterface.i"
%interface(Space::ABase1) %interface(Space::ABase1)
%interface(Space::CBase1) %interface(Space::CBase1)
%interface(Space::CBase2) %interface(Space::CBase2)

View file

@ -1,3 +1,12 @@
/* -----------------------------------------------------------------------------
* swiginterface.i
*
* SWIG interface feature and typemaps implementation providing:
* %interface
* %interface_impl
* %interface_custom
* ----------------------------------------------------------------------------- */
%define INTERFACE_TYPEMAPS(CTYPE...) %define INTERFACE_TYPEMAPS(CTYPE...)
%typemap(cstype) CTYPE "$&csinterfacename" %typemap(cstype) CTYPE "$&csinterfacename"
%typemap(cstype) CTYPE *, CTYPE [], CTYPE & "$csinterfacename" %typemap(cstype) CTYPE *, CTYPE [], CTYPE & "$csinterfacename"

View file

@ -1,3 +1,12 @@
/* -----------------------------------------------------------------------------
* swiginterface.i
*
* SWIG interface feature and typemaps implementation providing:
* %interface
* %interface_impl
* %interface_custom
* ----------------------------------------------------------------------------- */
%define INTERFACE_TYPEMAPS(CTYPE...) %define INTERFACE_TYPEMAPS(CTYPE...)
%typemap(jtype) CTYPE, CTYPE *, CTYPE *const&, CTYPE [], CTYPE & "long" %typemap(jtype) CTYPE, CTYPE *, CTYPE *const&, CTYPE [], CTYPE & "long"
%typemap(jstype) CTYPE "$&javainterfacename" %typemap(jstype) CTYPE "$&javainterfacename"