X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI.i;h=ba16e8f1c1a2ffbe453e7956f5d3b59105f8092a;hb=fa107dfb3ba274eaeb191c5ec4f6c96517b55a02;hp=7ff2bfc8e52974b6b3030849510dac2f7d67c6e1;hpb=54f1bc8dd6fe9682aba17578587cd760f8b82b3c;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI.i b/src/ModelAPI/ModelAPI.i index 7ff2bfc8e..ba16e8f1c 100644 --- a/src/ModelAPI/ModelAPI.i +++ b/src/ModelAPI/ModelAPI.i @@ -8,6 +8,7 @@ #include "ModelAPI_Session.h" #include "ModelAPI_Object.h" #include "ModelAPI_Feature.h" + #include "ModelAPI_CompositeFeature.h" #include "ModelAPI_Data.h" #include "ModelAPI_Attribute.h" #include "ModelAPI_AttributeDocRef.h" @@ -26,12 +27,12 @@ #include "ModelAPI_ResultBody.h" #include "ModelAPI_ResultPart.h" - template boost::shared_ptr castTo(boost::shared_ptr theObject) + template + boost::shared_ptr boost_cast(boost::shared_ptr theObject) { - return boost::dynamic_pointer_cast(theObject); + return boost::dynamic_pointer_cast(theObject); } - %} // to avoid error on this @@ -52,6 +53,7 @@ %shared_ptr(ModelAPI_Session) %shared_ptr(ModelAPI_Object) %shared_ptr(ModelAPI_Feature) +%shared_ptr(ModelAPI_CompositeFeature) %shared_ptr(ModelAPI_Data) %shared_ptr(ModelAPI_Attribute) %shared_ptr(ModelAPI_AttributeDocRef) @@ -76,6 +78,7 @@ %include "ModelAPI_Session.h" %include "ModelAPI_Object.h" %include "ModelAPI_Feature.h" +%include "ModelAPI_CompositeFeature.h" %include "ModelAPI_Data.h" %include "ModelAPI_Attribute.h" %include "ModelAPI_AttributeDocRef.h" @@ -97,7 +100,10 @@ %template(ObjectList) std::list >; %template(ResultList) std::list >; -template boost::shared_ptr castTo(boost::shared_ptr theObject); -%template(modelAPI_ResultConstruction) castTo; -%template(modelAPI_ResultBody) castTo; -%template(modelAPI_ResultPart) castTo; +template boost::shared_ptr boost_cast(boost::shared_ptr theObject); +%template(modelAPI_CompositeFeature) boost_cast; +%template(modelAPI_ResultConstruction) boost_cast; +%template(modelAPI_ResultBody) boost_cast; +%template(modelAPI_ResultPart) boost_cast; + +