]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation on Windows
authordbv <dbv@opencascade.com>
Mon, 6 Jun 2016 16:09:47 +0000 (19:09 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 17 Jun 2016 11:41:03 +0000 (14:41 +0300)
src/ConstructionAPI/CMakeLists.txt
src/ConstructionAPI/ConstructionAPI_Plane.h
src/ConstructionAPI/ConstructionAPI_Point.h
src/ConstructionAPI/ConstructionAPI_swig.h
src/ModelHighAPI/CMakeLists.txt
src/ModelHighAPI/ModelHighAPI.i
src/ModelHighAPI/ModelHighAPI_Double.h
src/ModelHighAPI/ModelHighAPI_Interface.h
src/ModelHighAPI/ModelHighAPI_swig.h

index 5a416970993e415969926b3d558aad1c33f4804e..b79f655cc456cf0f302d90da938f13288907aea1 100644 (file)
@@ -69,4 +69,4 @@ ADD_UNIT_TESTS(
   TestPoint.py
 )
 
-ADD_SUBDIRECTORY (Test)
+ADD_SUBDIRECTORY (Test)
index 7031b9f88c6bdeb076e8f149a0274dc5830991f0..1bc510179af689f10b104ff660073d65c44d072d 100644 (file)
@@ -24,18 +24,22 @@ class ConstructionAPI_Plane : public ModelHighAPI_Interface
 {
 public:
   /// Constructor without values
+  CONSTRUCTIONAPI_EXPORT
   explicit ConstructionAPI_Plane(const std::shared_ptr<ModelAPI_Feature> & theFeature);
   /// Constructor with values
+  CONSTRUCTIONAPI_EXPORT
   ConstructionAPI_Plane(const std::shared_ptr<ModelAPI_Feature> & theFeature,
                         const ModelHighAPI_Selection & theFace,
                         const ModelHighAPI_Double & theDistance);
   /// Constructor with values
+  CONSTRUCTIONAPI_EXPORT
   ConstructionAPI_Plane(const std::shared_ptr<ModelAPI_Feature> & theFeature,
                         const ModelHighAPI_Double & theA,
                         const ModelHighAPI_Double & theB,
                         const ModelHighAPI_Double & theC,
                         const ModelHighAPI_Double & theD);
   /// Destructor
+  CONSTRUCTIONAPI_EXPORT
   virtual ~ConstructionAPI_Plane();
 
   INTERFACE_7("Plane",
@@ -49,10 +53,12 @@ public:
   )
 
   /// Set face and distance
+  CONSTRUCTIONAPI_EXPORT
   void setFaceAndDistance(const ModelHighAPI_Selection & theFace,
                           const ModelHighAPI_Double & theDistance);
 
   /// Set GeneralEquation parameters of the feature
+  CONSTRUCTIONAPI_EXPORT
   void setGeneralEquation(const ModelHighAPI_Double & theA,
                           const ModelHighAPI_Double & theB,
                           const ModelHighAPI_Double & theC,
@@ -65,6 +71,7 @@ typedef std::shared_ptr<ConstructionAPI_Plane> PlanePtr;
 /**\ingroup CPPHighAPI
  * \brief Create Plane feature
  */
+CONSTRUCTIONAPI_EXPORT
 PlanePtr addPlane(const std::shared_ptr<ModelAPI_Document> & thePart,
                   const ModelHighAPI_Selection & theFace,
                   const ModelHighAPI_Double & theDistance);
@@ -72,6 +79,7 @@ PlanePtr addPlane(const std::shared_ptr<ModelAPI_Document> & thePart,
 /**\ingroup CPPHighAPI
  * \brief Create Plane feature
  */
+CONSTRUCTIONAPI_EXPORT
 PlanePtr addPlane(const std::shared_ptr<ModelAPI_Document> & thePart,
                   const ModelHighAPI_Double & theA,
                   const ModelHighAPI_Double & theB,
index aef5b8150ad4f0e236215f4efd78db29963ac42c..7edd813c591c8ec159e799df5240edbdcff71a99 100644 (file)
@@ -25,13 +25,16 @@ class ConstructionAPI_Point : public ModelHighAPI_Interface
 {
 public:
   /// Constructor without values
+  CONSTRUCTIONAPI_EXPORT
   explicit ConstructionAPI_Point(const std::shared_ptr<ModelAPI_Feature> & theFeature);
   /// Constructor with values
+  CONSTRUCTIONAPI_EXPORT
   ConstructionAPI_Point(const std::shared_ptr<ModelAPI_Feature> & theFeature,
                         const ModelHighAPI_Double & theX,
                         const ModelHighAPI_Double & theY,
                         const ModelHighAPI_Double & theZ);
   /// Destructor
+  CONSTRUCTIONAPI_EXPORT
   virtual ~ConstructionAPI_Point();
 
   INTERFACE_3("Point",
@@ -40,6 +43,7 @@ public:
               z, "z", Double, /** Z attribute */)
 
   /// Set point values
+  CONSTRUCTIONAPI_EXPORT
   void setPoint(const ModelHighAPI_Double & theX,
                 const ModelHighAPI_Double & theY,
                 const ModelHighAPI_Double & theZ);
@@ -51,6 +55,7 @@ typedef std::shared_ptr<ConstructionAPI_Point> PointPtr;
 /**\ingroup CPPHighAPI
  * \brief Create Point feature
  */
+CONSTRUCTIONAPI_EXPORT
 PointPtr addPoint(const std::shared_ptr<ModelAPI_Document> & thePart,
                   const ModelHighAPI_Double & theX,
                   const ModelHighAPI_Double & theY,
index 84dc5195843ea9f222d9018781f60313d91139c0..32d24c26516273e8b55560e4fc4e237f89ff1ba0 100644 (file)
@@ -9,6 +9,7 @@
 
   #include <ModelHighAPI_swig.h>
 
+  #include "ConstructionAPI.h"
   #include "ConstructionAPI_Plane.h"
   #include "ConstructionAPI_Point.h"
 
index c7fed3344dc890f37e76041b6286d00bfbcd7e2a..d197f65186245cb6bdf951a227c1cd87b14a18d2 100644 (file)
@@ -70,4 +70,4 @@ ADD_UNIT_TESTS(
   TestDouble.py
 )
 
-ADD_SUBDIRECTORY (Test)
+ADD_SUBDIRECTORY (Test)
index 19a930efa7033b69d6eedb300a4b59a3cd9df51a..003e58a9767b94e0357f5bce6f62184e46295a36 100644 (file)
@@ -8,7 +8,7 @@
 %include "doxyhelp.i"
 
 // to avoid error on this
-#define ModelHighAPI_EXPORT
+#define MODELHIGHAPI_EXPORT
 
 // standard definitions
 %include "typemaps.i"
index 3f84a72f8c6de40a9aa91be9588c7f8999d3c36a..8dc3906d05ce1ef33aa97e52232dedf4543e5ed8 100644 (file)
@@ -8,6 +8,8 @@
 #define SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_
 
 //--------------------------------------------------------------------------------------
+#include "ModelHighAPI.h"
+
 #include <memory>
 #include <string>
 
@@ -23,16 +25,16 @@ class ModelHighAPI_Double
 {
 public:
   /// Constructor for double
-  ModelHighAPI_Double(double theValue = 0.);
+  MODELHIGHAPI_EXPORT ModelHighAPI_Double(double theValue = 0.);
   /// Constructor for std::string
-  ModelHighAPI_Double(const std::string & theValue);
+  MODELHIGHAPI_EXPORT ModelHighAPI_Double(const std::string & theValue);
   /// Constructor for char *
-  ModelHighAPI_Double(const char * theValue);
+  MODELHIGHAPI_EXPORT ModelHighAPI_Double(const char * theValue);
   /// Destructor
-  virtual ~ModelHighAPI_Double();
+  MODELHIGHAPI_EXPORT virtual ~ModelHighAPI_Double();
 
   /// Fill attribute values
-  virtual void fillAttribute(std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
+  MODELHIGHAPI_EXPORT virtual void fillAttribute(std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
 
 private:
   boost::variant<double, std::string> myValue;
index 295d870365e9a7205d4a050f5c3a31cd2ce36841..037b25c5b13ff2ae1777e304201e58bff37399a0 100644 (file)
@@ -8,6 +8,8 @@
 #define SRC_MODELHIGHAPI_MODELHIGHAPI_INTERFACE_H_
 
 //--------------------------------------------------------------------------------------
+#include "ModelHighAPI.h"
+
 #include <memory>
 #include <string>
 //--------------------------------------------------------------------------------------
@@ -21,21 +23,21 @@ class ModelHighAPI_Interface
 {
 public:
   /// Constructor
-  explicit ModelHighAPI_Interface(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+  MODELHIGHAPI_EXPORT explicit ModelHighAPI_Interface(const std::shared_ptr<ModelAPI_Feature> & theFeature);
   /// Destructor
-  virtual ~ModelHighAPI_Interface();
+  MODELHIGHAPI_EXPORT virtual ~ModelHighAPI_Interface();
 
   /// Return ModelAPI_Feature
-  std::shared_ptr<ModelAPI_Feature> feature() const;
+  MODELHIGHAPI_EXPORT std::shared_ptr<ModelAPI_Feature> feature() const;
 
   /// Shortcut for feature()->getKind()
-  const std::string& getKind();
+  MODELHIGHAPI_EXPORT const std::string& getKind();
 
   /// Shortcut for feature()->execute()
-  void execute();
+  MODELHIGHAPI_EXPORT void execute();
 
   /// Throw exception to event loop
-  void throwException(const std::string & theDescription);
+  MODELHIGHAPI_EXPORT void throwException(const std::string & theDescription);
 
 protected:
   std::shared_ptr<ModelAPI_Feature> myFeature;
index eba21331f161bc2040389722eff1b9742c07a179..35d06b7622aa5284ea3ef40d9e0e5f54c6eb638e 100644 (file)
@@ -9,6 +9,7 @@
 
   #include <ModelAPI.h>
 
+  #include "ModelHighAPI.h"
   #include "ModelHighAPI_Double.h"
   #include "ModelHighAPI_Interface.h"
   #include "ModelHighAPI_Macro.h"