Salome HOME
Issue #434 Fix for equal cnstraint problem under Debian linux
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeValidator.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModelAPI_AttributeValidator.h
4 // Created:     4 Sep 2014
5 // Author:      Mikhail PONIKAROV
6
7 #ifndef ModelAPI_AttributeValidator_H
8 #define ModelAPI_AttributeValidator_H
9
10 #include <ModelAPI_Attribute.h>
11 #include <ModelAPI_Validator.h>
12
13 /**
14  * Generic validator for any attribute of a feature.
15  */
16 class ModelAPI_AttributeValidator : public ModelAPI_Validator
17 {
18 public:
19   //! returns true if attribute is valid
20   //! \param theAttribute the checked attribute
21   //! \param theArguments arguments of the attribute
22   virtual bool isValid(const AttributePtr& theAttribute,
23                        const std::list<std::string>& theArguments) const = 0;
24
25   ~ModelAPI_AttributeValidator();
26 };
27
28 #endif