-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
{
}
+FiltersAPI_Argument::FiltersAPI_Argument(const ModelHighAPI_Double theValue)
+ : myDouble(theValue)
+{
+}
+
+FiltersAPI_Argument::FiltersAPI_Argument(const double& theValue)
+{
+ myDouble = theValue;
+}
+
FiltersAPI_Argument::FiltersAPI_Argument(const std::string& theValue)
: myValue(theValue)
{
theDumper << "model.selection()"; // mySelectionAttr;
}
else if (mySelection.variantType() == ModelHighAPI_Selection::VT_Empty) {
- if (myValue.empty())
+ if (myDouble.value() > std::numeric_limits<double>::lowest() ) {
+ theDumper << myDouble.value();
+ }
+ else if (myValue.empty()) {
theDumper << myBoolean;
- else
+ }
+ else{
theDumper << "\"" << myValue << "\"";
+ }
}
}