5 #include "ModelHighAPI_swig.h"
10 // to avoid error on this
11 #define MODELHIGHAPI_EXPORT
13 // standard definitions
16 %include "std_string.i"
17 %include "std_shared_ptr.i"
20 %shared_ptr(ModelHighAPI_Interface)
23 %typemap(in) const ModelHighAPI_Double & (ModelHighAPI_Double temp) {
24 if (PyFloat_Check($input) || PyInt_Check($input) || PyLong_Check($input)) {
25 temp = ModelHighAPI_Double(PyFloat_AsDouble($input));
27 } else if (PyString_Check($input)) {
28 temp = ModelHighAPI_Double(PyString_AsString($input));
30 } else if ((SWIG_ConvertPtr($input, (void **)&$1, $1_descriptor, SWIG_POINTER_EXCEPTION)) == 0) {
32 PyErr_SetString(PyExc_ValueError, "argument must be ModelHighAPI_Double, float, int or string.");
37 %typecheck(SWIG_TYPECHECK_POINTER) ModelHighAPI_Double, const ModelHighAPI_Double & {
38 $1 = (PyFloat_Check($input) || PyInt_Check($input) || PyLong_Check($input) || PyString_Check($input)) ? 1 : 0;
41 // all supported interfaces
42 %include "ModelHighAPI_Double.h"
43 %include "ModelHighAPI_Interface.h"
44 %include "ModelHighAPI_Macro.h"
45 %include "ModelHighAPI_Selection.h"
46 %include "ModelHighAPI_Tools.h"
49 %template(SelectionList) std::list<ModelHighAPI_Selection>;