5 #include "ModelHighAPI_swig.h"
10 // to avoid error on this
11 #define ModelHighAPI_EXPORT
13 // standard definitions
15 %include "std_string.i"
16 %include "std_shared_ptr.i"
19 %shared_ptr(ModelHighAPI_Interface)
22 %typemap(in) const ModelHighAPI_Double & (ModelHighAPI_Double temp) {
23 if (PyFloat_Check($input) || PyInt_Check($input) || PyLong_Check($input)) {
24 temp = ModelHighAPI_Double(PyFloat_AsDouble($input));
26 } else if (PyString_Check($input)) {
27 temp = ModelHighAPI_Double(PyString_AsString($input));
29 } else if ((SWIG_ConvertPtr($input, (void **)&$1, $1_descriptor, SWIG_POINTER_EXCEPTION)) == 0) {
31 PyErr_SetString(PyExc_ValueError, "argument must be ModelHighAPI_Double, float, int or string.");
36 %typecheck(SWIG_TYPECHECK_POINTER) ModelHighAPI_Double, const ModelHighAPI_Double & {
37 $1 = (PyFloat_Check($input) || PyInt_Check($input) || PyLong_Check($input) || PyString_Check($input)) ? 1 : 0;
40 // all supported interfaces
41 %include "ModelHighAPI_Double.h"
42 %include "ModelHighAPI_Interface.h"
43 %include "ModelHighAPI_Macro.h"