1 // Name : ModelHighAPI_Double.cpp
5 // 29/03/16 - Sergey POKHODENKO - Creation of the file
7 //--------------------------------------------------------------------------------------
8 #include "ModelHighAPI_Double.h"
10 #include <ModelAPI_AttributeDouble.h>
11 //--------------------------------------------------------------------------------------
13 //--------------------------------------------------------------------------------------
14 ModelHighAPI_Double::ModelHighAPI_Double(double theValue)
15 : myVariantType(VT_DOUBLE)
20 ModelHighAPI_Double::ModelHighAPI_Double(const std::string & theValue)
21 : myVariantType(VT_STRING)
26 ModelHighAPI_Double::ModelHighAPI_Double(const char * theValue)
27 : myVariantType(VT_STRING)
32 ModelHighAPI_Double::~ModelHighAPI_Double()
36 //--------------------------------------------------------------------------------------
37 void ModelHighAPI_Double::fillAttribute(
38 const std::shared_ptr<ModelAPI_AttributeDouble> & theAttribute) const
40 switch(myVariantType) {
41 case VT_DOUBLE: theAttribute->setValue(myDouble); return;
42 case VT_STRING: theAttribute->setText(myString); return;