Salome HOME
fcc741e3b30a18ab3d620107aa6992b54bf74c76
[modules/shaper.git] / src / GeomValidators / GeomValidators_Positive.h
1 // File:        GeomValidators_ValidatorPositive.h
2 // Created:     16 Sep 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef GeomValidators_ValidatorPositive_H
6 #define GeomValidators_ValidatorPositive_H
7
8 #include <GeomValidators.h>
9 #include <ModelAPI_AttributeValidator.h>
10
11 /**
12  * Validates that the double attribute is greater than 1.e-5
13  */
14 class GeomValidators_Positive : public ModelAPI_AttributeValidator
15 {
16 public:
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(const AttributePtr& theAttribute,
23                                              const std::list<std::string>& theArguments) const;
24
25 };
26
27 #endif