Salome HOME
Constriction type for all sketch entities
[modules/shaper.git] / src / ModelAPI / ModelAPI_RefAttrValidator.h
index e5b1b6690ed968315e3ca3e36bec7b1e580c22fe..ab8ffc6cd5709f22a6819110506f65be5a870b4e 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        ModelAPI_RefAttrValidator.h
 // Created:     5 Aug 2014
 // Author:      Vitaly SMETANNIKOV
@@ -7,9 +9,11 @@
 
 #include <ModelAPI_Feature.h>
 #include <ModelAPI_Object.h>
+#include <ModelAPI_Attribute.h>
 #include <ModelAPI_AttributeValidator.h>
 
-/*
+/**\class ModelAPI_RefAttrValidator
+ * \ingroup DataModel
  * Used for filtering out the object that can be used for reference attribute value
  */
 class ModelAPI_RefAttrValidator : public ModelAPI_AttributeValidator
@@ -18,6 +22,11 @@ public:
   //! Returns true if object is good for the feature attribute
   virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
                        const ObjectPtr& theObject) const = 0;
+
+  //! Returns true if the attribute is good for the feature attribute
+  virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
+                       const AttributePtr& theAttribute) const = 0;
+
 };
 
 #endif