]> SALOME platform Git repositories - modules/shaper.git/blob - src/ModelAPI/ModelAPI_RefAttrValidator.h
Salome HOME
Fix for issue #417
[modules/shaper.git] / src / ModelAPI / ModelAPI_RefAttrValidator.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModelAPI_RefAttrValidator.h
4 // Created:     5 Aug 2014
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef ModelAPI_RefAttrValidator_H
8 #define ModelAPI_RefAttrValidator_H
9
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>
15
16 /**\class ModelAPI_RefAttrValidator
17  * \ingroup DataModel
18  * Used for filtering out the object that can be used for reference attribute value
19  */
20 class ModelAPI_RefAttrValidator : public ModelAPI_AttributeValidator
21 {
22 public:
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;
26
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;
30
31 };
32
33 #endif