Salome HOME
Fix: gcc issue: default parameter value for a reference from a constructor
[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.h>
11 #include <ModelAPI_Attribute.h>
12 #include <ModelAPI_Validator.h>
13
14 /**
15  * Generic validator for any attribute of a feature.
16  */
17 class ModelAPI_AttributeValidator : public ModelAPI_Validator
18 {
19 public:
20   //! returns true if attribute is valid
21   //! \param theAttribute the checked attribute
22   //! \param theArguments arguments of the attribute
23   virtual bool isValid(const AttributePtr& theAttribute,
24                        const std::list<std::string>& theArguments,
25                        std::string& theError) const = 0;
26
27   MODELAPI_EXPORT ~ModelAPI_AttributeValidator();
28 };
29
30 #endif