Salome HOME
Improve SWIG compilation: eliminate types duplication.
[modules/shaper.git] / src / ModelAPI / ModelAPI_swig.h
diff --git a/src/ModelAPI/ModelAPI_swig.h b/src/ModelAPI/ModelAPI_swig.h
new file mode 100644 (file)
index 0000000..8d27f41
--- /dev/null
@@ -0,0 +1,54 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:    ModelAPI_swig.h
+// Created: Dec 15, 2015
+// Author:  Sergey POKHODENKO
+
+#ifndef SRC_MODELAPI_MODELAPI_SWIG_H_
+#define SRC_MODELAPI_MODELAPI_SWIG_H_
+
+  #include "GeomAPI_swig.h"
+
+  #include "ModelAPI.h"
+  #include "ModelAPI_Entity.h"
+  #include "ModelAPI_Document.h"
+  #include "ModelAPI_Session.h"
+  #include "ModelAPI_Object.h"
+  #include "ModelAPI_Feature.h"
+  #include "ModelAPI_Plugin.h"
+  #include "ModelAPI_CompositeFeature.h"
+  #include "ModelAPI_Data.h"
+  #include "ModelAPI_Attribute.h"
+  #include "ModelAPI_AttributeDocRef.h"
+  #include "ModelAPI_AttributeDouble.h"
+  #include "ModelAPI_AttributeInteger.h"
+  #include "ModelAPI_AttributeIntArray.h"
+  #include "ModelAPI_AttributeString.h"
+  #include "ModelAPI_AttributeReference.h"
+  #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_ResultParameter.h"
+  #include "ModelAPI_ResultGroup.h"
+  #include "ModelAPI_Tools.h"
+  #include "ModelAPI_ResultCompSolid.h"
+
+  #include <memory>
+  #include <string>
+
+  template<class T1, class T2>
+  std::shared_ptr<T1> shared_ptr_cast(std::shared_ptr<T2> theObject)
+  {
+    return std::dynamic_pointer_cast<T1>(theObject);
+  }
+
+#endif /* SRC_MODELAPI_MODELAPI_SWIG_H_ */