1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_RefAttrValidator.h
5 // Author: Vitaly SMETANNIKOV
7 #ifndef ModelAPI_RefAttrValidator_H
8 #define ModelAPI_RefAttrValidator_H
10 #include <ModelAPI_Feature.h>
11 #include <ModelAPI_Object.h>
12 #include <ModelAPI_Attribute.h>
13 #include <ModelAPI_AttributeValidator.h>
16 * Used for filtering out the object that can be used for reference attribute value
18 class ModelAPI_RefAttrValidator : public ModelAPI_AttributeValidator
21 //! Returns true if object is good for the feature attribute
22 virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
23 const ObjectPtr& theObject) const = 0;
25 //! Returns true if the attribute is good for the feature attribute
26 virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
27 const AttributePtr& theAttribute) const = 0;