Salome HOME
Make general validation mechanism also for attributes the validate method for feature...
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeValidator.h
1 // File:        ModelAPI_AttributeValidator.h
2 // Created:     4 Sep 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef ModelAPI_AttributeValidator_H
6 #define ModelAPI_AttributeValidator_H
7
8 #include <ModelAPI_Attribute.h>
9 #include <ModelAPI_Validator.h>
10
11 /**
12  * Generic validator for any attribute of a feature.
13  */
14 class ModelAPI_AttributeValidator : public ModelAPI_Validator
15 {
16 public:
17   //! returns true if attribute is valid
18   //! \param theAttribute the checked attribute
19   //! \param theArguments arguments of the attribute
20   virtual bool isValid(
21     const AttributePtr& theAttribute, const std::list<std::string>& theArguments) const = 0;
22 };
23
24 #endif