1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomValidators_ValidatorPositive.h
4 // Created: 16 Sep 2014
5 // Author: Mikhail PONIKAROV
7 #ifndef GeomValidators_ValidatorPositive_H
8 #define GeomValidators_ValidatorPositive_H
10 #include <GeomValidators.h>
11 #include <ModelAPI_AttributeValidator.h>
14 * Validates that the double attribute is greater than 1.e-5
16 class GeomValidators_Positive : public ModelAPI_AttributeValidator
19 //! Constructor for only one instance per application: will register the validator
20 GeomValidators_Positive();
21 //! returns true if attribute is valid
22 //! \param[in] theAttribute the checked attribute
23 //! \param[in] theArguments arguments of the attribute
24 //! \param[out] theError error message.
25 GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
26 const std::list<std::string>& theArguments,
27 std::string& theError) const;