X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomDataAPI%2FGeomDataAPI.i;h=c7eb5e74f5afd6450fe7b938f9b15e51d42a11a9;hb=f3fe84b84646ce3ece6e0fd1511cacdae29c7765;hp=98496183ef39a34639d9f1315577b49001cd04af;hpb=35a88fdd724349275bbff32b9596a44e7cd422e2;p=modules%2Fshaper.git diff --git a/src/GeomDataAPI/GeomDataAPI.i b/src/GeomDataAPI/GeomDataAPI.i index 98496183e..c7eb5e74f 100644 --- a/src/GeomDataAPI/GeomDataAPI.i +++ b/src/GeomDataAPI/GeomDataAPI.i @@ -1,18 +1,13 @@ /* GeomDataAPI.i */ %module GeomDataAPI %{ - #include "ModelAPI_Attribute.h" - #include "GeomDataAPI.h" - #include "GeomDataAPI_Point.h" - #include "GeomDataAPI_Dir.h" - #include "GeomDataAPI_Point2D.h" - - template std::shared_ptr castTo(std::shared_ptr theObject) - { - return std::dynamic_pointer_cast(theObject); - } + #include "GeomDataAPI_swig.h" %} +// import other modules +%import "GeomAPI.i" +%import "ModelAPI.i" + // to avoid error on this #define GEOMDATAAPI_EXPORT #define MODELAPI_EXPORT @@ -23,13 +18,11 @@ %include "std_list.i" %include "std_shared_ptr.i" -%shared_ptr(ModelAPI_Attribute) %shared_ptr(GeomDataAPI_Point) %shared_ptr(GeomDataAPI_Dir) %shared_ptr(GeomDataAPI_Point2D) // all supported interfaces -%include "ModelAPI_Attribute.h" %include "GeomDataAPI_Point.h" %include "GeomDataAPI_Dir.h" %include "GeomDataAPI_Point2D.h"