Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated copyright message
[modules/shaper.git]
/
src
/
FiltersAPI
/
FiltersAPI_Argument.cpp
diff --git
a/src/FiltersAPI/FiltersAPI_Argument.cpp
b/src/FiltersAPI/FiltersAPI_Argument.cpp
index 5940ebb7fb75872a1b7c0feec458df522388c402..bf54fee45eca984578781b41c38f3f2f66b82451 100644
(file)
--- a/
src/FiltersAPI/FiltersAPI_Argument.cpp
+++ b/
src/FiltersAPI/FiltersAPI_Argument.cpp
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-20
19 CEA/DEN, EDF R&D
+// Copyright (C) 2014-20
23 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-28,6
+28,16
@@
FiltersAPI_Argument::FiltersAPI_Argument(const bool theValue)
{
}
{
}
+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)
{
FiltersAPI_Argument::FiltersAPI_Argument(const std::string& theValue)
: myValue(theValue)
{
@@
-54,9
+64,14
@@
void FiltersAPI_Argument::dump(ModelHighAPI_Dumper& theDumper) const
theDumper << "model.selection()"; // mySelectionAttr;
}
else if (mySelection.variantType() == ModelHighAPI_Selection::VT_Empty) {
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;
theDumper << myBoolean;
- else
+ }
+ else{
theDumper << "\"" << myValue << "\"";
theDumper << "\"" << myValue << "\"";
+ }
}
}
}
}