X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI.i;h=bdf6c28e52b440c0161f3fd7a0010419d974c8d9;hb=031fb5e7c551e695afa72a9de299f118a40d8d88;hp=4d0ebb256d4a17aeb7179ec0f092ca6c26dd41e5;hpb=1b8ae7d688c8a698f81f58242b5f6370984a2c22;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI.i b/src/ModelAPI/ModelAPI.i index 4d0ebb256..bdf6c28e5 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,14 +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) - -// Don't create default constructors -// %nodefaultctor ModelAPI_Plugin; -// %nodefaultctor ModelAPI_Session; +%shared_ptr(ModelAPI_ResultGroup) +%shared_ptr(ModelAPI_ResultParameters) // all supported interfaces %include "GeomAPI_Interface.h" @@ -112,33 +118,40 @@ %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 boost::shared_ptr boost_cast(boost::shared_ptr theObject); +// std::list -> [] +%template(ObjectList) std::list >; +%template(ResultList) std::list >; +%template(DocumentList) std::list >; -// Feature casts -%template(modelAPI_Feature) boost_cast; -%template(modelAPI_CompositeFeature) boost_cast; +// std::dynamic_pointer_cast +template std::shared_ptr shared_ptr_cast(std::shared_ptr theObject); +%template(modelAPI_CompositeFeature) shared_ptr_cast; +%template(modelAPI_Feature) shared_ptr_cast; -// Result casts -%template(modelAPI_ResultConstruction) boost_cast; -%template(modelAPI_ResultBody) boost_cast; -%template(modelAPI_ResultPart) boost_cast; +%template(modelAPI_Result) shared_ptr_cast; +%template(modelAPI_ResultConstruction) shared_ptr_cast; +%template(modelAPI_ResultBody) shared_ptr_cast; +%template(modelAPI_ResultPart) shared_ptr_cast; +%template(modelAPI_ResultGroup) shared_ptr_cast; // Attribute casts -%template(modelAPI_AttributeDocRef) boost_cast; -%template(modelAPI_AttributeDouble) boost_cast; -%template(modelAPI_AttributeInteger) boost_cast; -%template(modelAPI_AttributeString) boost_cast; -%template(modelAPI_AttributeReference) boost_cast; -%template(modelAPI_AttributeRefAttr) boost_cast; -%template(modelAPI_AttributeBoolean) boost_cast; -%template(modelAPI_AttributeSelection) boost_cast; -%template(modelAPI_AttributeSelectionList) boost_cast; -%template(modelAPI_AttributeRefList) boost_cast; +%template(modelAPI_AttributeDocRef) shared_ptr_cast; +%template(modelAPI_AttributeDouble) shared_ptr_cast; +%template(modelAPI_AttributeInteger) shared_ptr_cast; +%template(modelAPI_AttributeString) shared_ptr_cast; +%template(modelAPI_AttributeReference) shared_ptr_cast; +%template(modelAPI_AttributeRefAttr) shared_ptr_cast; +%template(modelAPI_AttributeBoolean) shared_ptr_cast; +%template(modelAPI_AttributeSelection) shared_ptr_cast; +%template(modelAPI_AttributeSelectionList) shared_ptr_cast; +%template(modelAPI_AttributeRefList) shared_ptr_cast;