]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelHighAPI/ModelHighAPI_Double.h
Salome HOME
Use fillAttribute in *API interfaces
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Double.h
index f39e50445a0fa6ac484062e1cfd1839e29a33ec3..e1b3ce6872758fab3095907c7a1acd367c4e7016 100644 (file)
@@ -8,6 +8,8 @@
 #define SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_
 
 //--------------------------------------------------------------------------------------
+#include "ModelHighAPI.h"
+
 #include <memory>
 #include <string>
 
@@ -22,19 +24,22 @@ class ModelAPI_AttributeDouble;
 class ModelHighAPI_Double
 {
 public:
-  /// Default constructor
-  ModelHighAPI_Double();
   /// Constructor for double
-  ModelHighAPI_Double(double theValue);
+  MODELHIGHAPI_EXPORT
+  ModelHighAPI_Double(double theValue = 0.);
   /// Constructor for std::string
+  MODELHIGHAPI_EXPORT
   ModelHighAPI_Double(const std::string & theValue);
   /// Constructor for char *
+  MODELHIGHAPI_EXPORT
   ModelHighAPI_Double(const char * theValue);
   /// Destructor
+  MODELHIGHAPI_EXPORT
   virtual ~ModelHighAPI_Double();
 
   /// Fill attribute values
-  virtual void fillAttribute(std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
+  MODELHIGHAPI_EXPORT
+  virtual void fillAttribute(const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
 
 private:
   boost::variant<double, std::string> myValue;