1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomValidators_Finite.h
4 // Created: 27 Aug 2015
5 // Author: Natalia ERMOLAEVA
7 #ifndef GeomValidators_Finite_H
8 #define GeomValidators_Finite_H
10 #include <GeomValidators.h>
11 #include <ModelAPI_AttributeValidator.h>
15 * A validator for finite objects. It returns false for construction infinite results.
17 class GeomValidators_Finite : public ModelAPI_AttributeValidator
20 //! returns true if attribute is valid
21 //! \param[in] theAttribute the checked attribute
22 //! \param[in] theArguments arguments of the attribute
23 //! \param[out] theError error message.
24 GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
25 const std::list<std::string>& theArguments,
26 std::string& theError) const;