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>
14 #include <GeomAPI_Shape.h>
16 /**\class ModelAPI_RefAttrValidator
18 * Used for filtering out the object that can be used for reference attribute value
20 class ModelAPI_RefAttrValidator : public ModelAPI_AttributeValidator
23 //! Returns true if object is good for the feature attribute
24 virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
25 const ObjectPtr& theObject, const GeomShapePtr& theShape) const = 0;
27 //! Returns true if the attribute is good for the feature attribute
28 virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
29 const AttributePtr& theAttribute) const = 0;