This commit is contained in:
Penn, John M 047828115 2020-11-05 13:54:10 -06:00
commit 9f5cc63a2a
2 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,8 @@
%module swig_double
%include "std_string.i"
%{
#include "trick/swig/swig_double.hh"
@ -11,6 +13,8 @@
// expose the __str__ function to swig so that it can do pretty prints of parameters with units
class swig_double {
public:
std::string units;
char * __str__() ;
char * __repr__() ;

View File

@ -1,6 +1,8 @@
%module swig_int
%include "std_string.i"
%{
#include "trick/swig/swig_int.hh"
@ -11,6 +13,8 @@
// expose the __str__ function to swig so that it can do pretty prints of parameters with units
class swig_int {
public:
std::string units;
char * __str__() ;
char * __repr__() ;