X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI.i;h=ba16e8f1c1a2ffbe453e7956f5d3b59105f8092a;hb=f626fe578ad8bf82242d71b583e96f846e628596;hp=0eb00bd495b6bb40e5d44883ea780f9050d4a502;hpb=12866ad4430e2c7b4fe186d7117291e7aa09a18e;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI.i b/src/ModelAPI/ModelAPI.i index 0eb00bd49..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" @@ -17,6 +18,7 @@ #include "ModelAPI_AttributeReference.h" #include "ModelAPI_AttributeRefAttr.h" #include "ModelAPI_AttributeSelection.h" + #include "ModelAPI_AttributeSelectionList.h" #include "ModelAPI_Validator.h" #include "ModelAPI_AttributeRefList.h" #include "ModelAPI_AttributeBoolean.h" @@ -25,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 @@ -51,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) @@ -62,6 +65,7 @@ %shared_ptr(ModelAPI_AttributeRefList) %shared_ptr(ModelAPI_AttributeBoolean) %shared_ptr(ModelAPI_AttributeSelection) +%shared_ptr(ModelAPI_AttributeSelectionList) %shared_ptr(ModelAPI_Result) %shared_ptr(ModelAPI_ResultConstruction) %shared_ptr(ModelAPI_ResultBody) @@ -74,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" @@ -84,6 +89,7 @@ %include "ModelAPI_AttributeRefAttr.h" %include "ModelAPI_AttributeBoolean.h" %include "ModelAPI_AttributeSelection.h" +%include "ModelAPI_AttributeSelectionList.h" %include "ModelAPI_AttributeRefList.h" %include "ModelAPI_Validator.h" %include "ModelAPI_Result.h" @@ -94,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; + +