1 // Name : ModelHighAPI_Double.h
5 // 29/03/16 - Sergey POKHODENKO - Creation of the file
7 #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_
8 #define SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_
10 //--------------------------------------------------------------------------------------
11 #include "ModelHighAPI.h"
16 #include <boost/variant.hpp>
17 //--------------------------------------------------------------------------------------
18 class ModelAPI_AttributeDouble;
19 //--------------------------------------------------------------------------------------
20 /**\class ModelHighAPI_Double
22 * \brief Class for filling ModelAPI_AttributeDouble
24 class ModelHighAPI_Double
27 /// Constructor for double
29 ModelHighAPI_Double(double theValue = 0.);
30 /// Constructor for std::string
32 ModelHighAPI_Double(const std::string & theValue);
33 /// Constructor for char *
35 ModelHighAPI_Double(const char * theValue);
38 virtual ~ModelHighAPI_Double();
40 /// Fill attribute values
42 virtual void fillAttribute(const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const;
45 boost::variant<double, std::string> myValue;
48 //--------------------------------------------------------------------------------------
49 //--------------------------------------------------------------------------------------
50 #endif /* SRC_MODELHIGHAPI_MODELHIGHAPI_DOUBLE_H_ */