-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include "FiltersAPI.h"
#include <ModelAPI_AttributeSelection.h>
+#include <ModelHighAPI_Double.h>
#include <ModelHighAPI_Dumper.h>
#include <ModelHighAPI_Selection.h>
+#include <limits>
+
/**\class FiltersAPI_Argument
* \ingroup CPPHighAPI
* \brief Argument of the Filter
FILTERSAPI_EXPORT
FiltersAPI_Argument(const bool theValue);
+ FILTERSAPI_EXPORT
+ FiltersAPI_Argument(const ModelHighAPI_Double theValue);
+
+ FILTERSAPI_EXPORT
+ FiltersAPI_Argument(const double& theValue);
+
FILTERSAPI_EXPORT
FiltersAPI_Argument(const std::string& theValue);
const bool boolean() const { return myBoolean; }
const std::string& string() const { return myValue; }
const ModelHighAPI_Selection& selection() const { return mySelection; }
-
+ const ModelHighAPI_Double& dble() const { return myDouble; }
/// Dump wrapped feature
FILTERSAPI_EXPORT
void dump(ModelHighAPI_Dumper& theDumper) const;
private:
bool myBoolean;
+ ModelHighAPI_Double myDouble = std::numeric_limits<double>::lowest() ;
std::string myValue;
ModelHighAPI_Selection mySelection;
AttributeSelectionPtr mySelectionAttr;