Salome HOME
Issue #19471: Seg fault if edge for point creation is selected from object browser
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Validators.h
index c6c5be91873c3ebbc99937ee428c4c7313398403..accbf19943f42eba68cca8bad9a3419f44e6a8a0 100644 (file)
@@ -127,4 +127,19 @@ public:
                        Events_InfoMessage& theError) const;
 };
 
+/// \class ConstructionPlugin_ValidatorNotFeature
+/// \ingroup Validators
+/// \brief A validator for selection of a result but not a feature.
+class ConstructionPlugin_ValidatorNotFeature : public ModelAPI_AttributeValidator
+{
+public:
+  //! \return True if the attribute is valid.
+  //! \param[in] theAttribute the checked attribute.
+  //! \param[in] theArguments arguments of the attribute.
+  //! \param[out] theError error message.
+  virtual bool isValid(const AttributePtr& theAttribute,
+                       const std::list<std::string>& theArguments,
+                       Events_InfoMessage& theError) const;
+};
+
 #endif
\ No newline at end of file