Merge pull request #1073 from nasa/add-units-to-swig_int

Add units to swig_int and swig_double
This commit is contained in:
dbankieris 2020-11-05 11:31:45 -06:00 committed by GitHub
commit ad5496e2af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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__() ;