4 #include "GeomDataAPI_swig.h"
7 // import other modules
10 // to avoid error on this
11 #define GEOMDATAAPI_EXPORT
12 #define MODELAPI_EXPORT
14 // standard definitions
16 %include "std_string.i"
18 %include "std_shared_ptr.i"
20 %shared_ptr(GeomDataAPI_Point)
21 %shared_ptr(GeomDataAPI_Dir)
22 %shared_ptr(GeomDataAPI_Point2D)
24 // all supported interfaces
25 %include "GeomDataAPI_Point.h"
26 %include "GeomDataAPI_Dir.h"
27 %include "GeomDataAPI_Point2D.h"
29 template<class T> std::shared_ptr<T> castTo(std::shared_ptr<ModelAPI_Attribute> theObject);
30 %template(geomDataAPI_Point) castTo<GeomDataAPI_Point>;
31 %template(geomDataAPI_Dir) castTo<GeomDataAPI_Dir>;
32 %template(geomDataAPI_Point2D) castTo<GeomDataAPI_Point2D>;