Salome HOME
Issue #1369: Added "SubShapes" feature.
[modules/shaper.git] / src / BuildPlugin / BuildPlugin_Validators.h
index 1f2091efe0e45347047c9eb7399cc7b3677d5a31..2bd253f9ddbc3736d4eeab108b6854fb5e0bb9c7 100644 (file)
@@ -64,4 +64,19 @@ public:
   virtual bool isNotObligatory(std::string theFeature, std::string theAttribute);
 };
 
+/// \class BuildPlugin_ValidatorSubShapesSelection
+/// \ingroup Validators
+/// \brief A validator for selection sub-shapes for SubShape feature.
+class BuildPlugin_ValidatorSubShapesSelection: public ModelAPI_AttributeValidator
+{
+public:
+  //! Returns true if attribute is ok.
+  //! \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,
+                        std::string& theError) const;
+};
+
 #endif