X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI.i;h=d1ffd5643561aae44863ce92451cad2ad1f295ca;hb=35a88fdd724349275bbff32b9596a44e7cd422e2;hp=cc31faa0f1d6aa200d12eaad381de47ca499070e;hpb=e7ee60119a1f8b1dbbff52a788ea548eacd96aa2;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI.i b/src/ModelAPI/ModelAPI.i index cc31faa0f..d1ffd5643 100644 --- a/src/ModelAPI/ModelAPI.i +++ b/src/ModelAPI/ModelAPI.i @@ -28,18 +28,23 @@ #include "ModelAPI_AttributeRefAttr.h" #include "ModelAPI_AttributeSelection.h" #include "ModelAPI_AttributeSelectionList.h" + #include "ModelAPI_AttributeValidator.h" #include "ModelAPI_Validator.h" + #include "ModelAPI_FeatureValidator.h" #include "ModelAPI_AttributeRefList.h" #include "ModelAPI_AttributeBoolean.h" #include "ModelAPI_Result.h" #include "ModelAPI_ResultConstruction.h" #include "ModelAPI_ResultBody.h" #include "ModelAPI_ResultPart.h" + #include "ModelAPI_ResultParameters.h" + #include "ModelAPI_ResultGroup.h" + #include "ModelAPI_Tools.h" template - boost::shared_ptr boost_cast(boost::shared_ptr theObject) + std::shared_ptr shared_ptr_cast(std::shared_ptr theObject) { - return boost::dynamic_pointer_cast(theObject); + return std::dynamic_pointer_cast(theObject); } %} @@ -52,14 +57,14 @@ %include "typemaps.i" %include "std_string.i" %include "std_list.i" +%include "std_shared_ptr.i" // directors %feature("director") ModelAPI_Plugin; %feature("director") ModelAPI_Object; %feature("director") ModelAPI_Feature; -// boost pointers -%include "boost_shared_ptr.i" +// shared pointers // For ModelAPI_ResultConstruction.shape() %shared_ptr(GeomAPI_Interface) %shared_ptr(GeomAPI_Shape) @@ -81,10 +86,15 @@ %shared_ptr(ModelAPI_AttributeBoolean) %shared_ptr(ModelAPI_AttributeSelection) %shared_ptr(ModelAPI_AttributeSelectionList) +%shared_ptr(ModelAPI_Validator) +%shared_ptr(ModelAPI_AttributeValidator) +%shared_ptr(ModelAPI_FeatureValidator) %shared_ptr(ModelAPI_Result) %shared_ptr(ModelAPI_ResultConstruction) %shared_ptr(ModelAPI_ResultBody) %shared_ptr(ModelAPI_ResultPart) +%shared_ptr(ModelAPI_ResultGroup) +%shared_ptr(ModelAPI_ResultParameters) // all supported interfaces %include "GeomAPI_Interface.h" @@ -108,19 +118,29 @@ %include "ModelAPI_AttributeSelectionList.h" %include "ModelAPI_AttributeRefList.h" %include "ModelAPI_Validator.h" +%include "ModelAPI_AttributeValidator.h" +%include "ModelAPI_FeatureValidator.h" %include "ModelAPI_Result.h" %include "ModelAPI_ResultConstruction.h" %include "ModelAPI_ResultBody.h" %include "ModelAPI_ResultPart.h" +%include "ModelAPI_ResultGroup.h" +%include "ModelAPI_ResultParameters.h" +%include "ModelAPI_Tools.h" -%template(ObjectList) std::list >; -%template(ResultList) std::list >; +%template(ObjectList) std::list >; +%template(ResultList) std::list >; template boost::shared_ptr boost_cast(boost::shared_ptr theObject); // Feature casts -%template(modelAPI_Feature) boost_cast; -%template(modelAPI_CompositeFeature) boost_cast; +%template(modelAPI_Feature) shared_ptr_cast; +%template(modelAPI_CompositeFeature) shared_ptr_cast; +template std::shared_ptr shared_ptr_cast(std::shared_ptr theObject); +%template(modelAPI_CompositeFeature) shared_ptr_cast; +%template(modelAPI_ResultConstruction) shared_ptr_cast; +%template(modelAPI_ResultBody) shared_ptr_cast; +%template(modelAPI_ResultPart) shared_ptr_cast; // Result casts %template(modelAPI_ResultConstruction) boost_cast;