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_AttributeValidator.h>
13 * Used for filtering out the object that can be used for reference attribute value
15 class ModelAPI_RefAttrValidator : public ModelAPI_AttributeValidator
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;