Salome HOME
Issue #273: Add copyright string
[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
15 /*
16  * Used for filtering out the object that can be used for reference attribute value
17  */
18 class ModelAPI_RefAttrValidator : public ModelAPI_AttributeValidator
19 {
20 public:
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;
24
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;
28
29 };
30
31 #endif