Salome HOME
beac5e2c9d76600741e5a3f1d4d68199f81ffe3d
[modules/shaper.git] / src / ModelAPI / ModelAPI_ShapeValidator.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModelAPI_ShapeValidator.h
4 // Created:     2 Feb 2015
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef ModelAPI_ShapeValidator_H
8 #define ModelAPI_ShapeValidator_H
9
10 #include <ModelAPI.h>
11
12 #include <ModelAPI_AttributeValidator.h>
13 #include <ModelAPI_Attribute.h>
14
15 /**
16  * Generic validator for any attribute of a feature.
17  */
18 class ModelAPI_ShapeValidator : public ModelAPI_AttributeValidator
19 {
20 public:
21   /// returns True if the attribute is valid. It checks whether the feature of the attribute
22   /// does not contain a selection attribute filled with the same shape
23   /// \param theAttribute an attribute to check
24   /// \param theArguments a filter parameters
25   MODELAPI_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
26                                        const std::list<std::string>& theArguments) const;
27 };
28
29 #endif