Salome HOME
Merge branch 'Dev_0.6' of newgeom:newgeom into Dev_0.6
[modules/shaper.git] / src / ModelAPI / ModelAPI_RefAttrValidator.h
1 // File:        ModelAPI_RefAttrValidator.h
2 // Created:     5 Aug 2014
3 // Author:      Vitaly SMETANNIKOV
4
5 #ifndef ModelAPI_RefAttrValidator_H
6 #define ModelAPI_RefAttrValidator_H
7
8 #include <ModelAPI_Feature.h>
9 #include <ModelAPI_Object.h>
10 #include <ModelAPI_Attribute.h>
11 #include <ModelAPI_AttributeValidator.h>
12
13 /*
14  * Used for filtering out the object that can be used for reference attribute value
15  */
16 class ModelAPI_RefAttrValidator : public ModelAPI_AttributeValidator
17 {
18 public:
19   //! Returns true if object is good for the feature attribute
20   virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
21                        const ObjectPtr& theObject) const = 0;
22
23   //! Returns true if the attribute is good for the feature attribute
24   virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
25                        const AttributePtr& theAttribute) const = 0;
26
27 };
28
29 #endif