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