Salome HOME
Disable sketch input fields unconditionally.
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Double.h
index 3f84a72f8c6de40a9aa91be9588c7f8999d3c36a..fdab71d1e54696c9033a92f680d5a09b8c49c692 100644 (file)
@@ -8,10 +8,10 @@
 #define SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_
 
 //--------------------------------------------------------------------------------------
+#include "ModelHighAPI.h"
+
 #include <memory>
 #include <string>
-
-#include <boost/variant.hpp>
 //--------------------------------------------------------------------------------------
 class ModelAPI_AttributeDouble;
 //--------------------------------------------------------------------------------------
@@ -23,19 +23,26 @@ class ModelHighAPI_Double
 {
 public:
   /// Constructor for double
+  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;
+  enum VariantType { VT_DOUBLE, VT_STRING } myVariantType;
+  double myDouble;
+  std::string myString;
 };
 
 //--------------------------------------------------------------------------------------