Salome HOME
Issue #817: Be able to export the whole part.
[modules/shaper.git] / src / GeomValidators / GeomValidators_Finite.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        GeomValidators_Finite.h
4 // Created:     27 Aug 2015
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef GeomValidators_Finite_H
8 #define GeomValidators_Finite_H
9
10 #include <GeomValidators.h>
11 #include <ModelAPI_AttributeValidator.h>
12
13 /**
14 * \ingroup Validators
15 * A validator for finite objects. It returns false for construction infinite results.
16 */
17 class GeomValidators_Finite : public ModelAPI_AttributeValidator
18 {
19 public:
20   //! returns true if attribute is valid
21   //! \param theAttribute the checked attribute
22   //! \param theArguments arguments of the attribute
23   GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
24                                              const std::list<std::string>& theArguments,
25                                              std::string& theError) const;
26 };
27
28 #endif