Salome HOME
Disable sketch input fields unconditionally.
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Double.h
index 5fefb890fd3ee06bee9a6614e56e61b4efc93e70..fdab71d1e54696c9033a92f680d5a09b8c49c692 100644 (file)
@@ -12,8 +12,6 @@
 
 #include <memory>
 #include <string>
-
-#include <boost/variant.hpp>
 //--------------------------------------------------------------------------------------
 class ModelAPI_AttributeDouble;
 //--------------------------------------------------------------------------------------
@@ -39,10 +37,12 @@ public:
 
   /// Fill attribute values
   MODELHIGHAPI_EXPORT
-  virtual void fillAttribute(std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
+  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;
 };
 
 //--------------------------------------------------------------------------------------