1 // File: ModelAPI_RefAttrValidator.h
3 // Author: Vitaly SMETANNIKOV
5 #ifndef ModelAPI_RefAttrValidator_H
6 #define ModelAPI_RefAttrValidator_H
8 #include <ModelAPI_Feature.h>
9 #include <ModelAPI_Object.h>
10 #include <ModelAPI_Attribute.h>
11 #include <ModelAPI_AttributeValidator.h>
14 * Used for filtering out the object that can be used for reference attribute value
16 class ModelAPI_RefAttrValidator : public ModelAPI_AttributeValidator
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;
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;