4 #include "ModelHighAPI_swig.h"
7 // to avoid error on this
8 #define ModelHighAPI_EXPORT
10 // standard definitions
12 %include "std_string.i"
13 %include "std_shared_ptr.i"
16 %shared_ptr(ModelHighAPI_Interface)
19 %typemap(in) const ModelHighAPI_Double & (ModelHighAPI_Double temp) {
20 if (PyFloat_Check($input) || PyInt_Check($input) || PyLong_Check($input)) {
21 temp = ModelHighAPI_Double(PyFloat_AsDouble($input));
23 } else if (PyString_Check($input)) {
24 temp = ModelHighAPI_Double(PyString_AsString($input));
26 } else if ((SWIG_ConvertPtr($input, (void **)&$1, $1_descriptor, SWIG_POINTER_EXCEPTION)) == 0) {
28 PyErr_SetString(PyExc_ValueError, "argument must be ModelHighAPI_Double, float, int or string.");
33 %typecheck(SWIG_TYPECHECK_POINTER) ModelHighAPI_Double, const ModelHighAPI_Double & {
34 $1 = (PyFloat_Check($input) || PyInt_Check($input) || PyLong_Check($input) || PyString_Check($input)) ? 1 : 0;
37 // all supported interfaces
38 %include "ModelHighAPI_Double.h"
39 %include "ModelHighAPI_Interface.h"