Salome HOME
Fix for undo/redo inside of the sketch
[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_AttributeValidator.h>
11
12 /*
13  * Used for filtering out the object that can be used for reference attribute value
14  */
15 class ModelAPI_RefAttrValidator : public ModelAPI_AttributeValidator
16 {
17 public:
18   //! Returns true if object is good for the feature attribute
19   virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
20                        const ObjectPtr& theObject) const = 0;
21 };
22
23 #endif