1 // File: GeomValidators_ValidatorPositive.h
2 // Created: 16 Sep 2014
3 // Author: Mikhail PONIKAROV
5 #ifndef GeomValidators_ValidatorPositive_H
6 #define GeomValidators_ValidatorPositive_H
8 #include <GeomValidators.h>
9 #include <ModelAPI_AttributeValidator.h>
12 * Validates that the double attribute is greater than 1.e-5
14 class GeomValidators_Positive : public ModelAPI_AttributeValidator
17 //! Constructor for only one instance per application: will register the validator
18 GeomValidators_Positive();
19 //! returns true if attribute is valid
20 //! \param theAttribute the checked attribute
21 //! \param theArguments arguments of the attribute
22 GEOMVALIDATORS_EXPORT virtual bool isValid(
23 const AttributePtr& theAttribute, const std::list<std::string>& theArguments) const;