X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_ShapeValidator.h;h=beac5e2c9d76600741e5a3f1d4d68199f81ffe3d;hb=cdc2caa21375bc96aaad9bb7c3ee1140dac1d738;hp=596e1c08e682b61e66ac3dab55ed44c08e2ee24a;hpb=794ff5a3d14e29b31249dd0b31a38cb90b9c35b2;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_ShapeValidator.h b/src/ModelAPI/ModelAPI_ShapeValidator.h index 596e1c08e..beac5e2c9 100644 --- a/src/ModelAPI/ModelAPI_ShapeValidator.h +++ b/src/ModelAPI/ModelAPI_ShapeValidator.h @@ -9,25 +9,21 @@ #include -#include -#include +#include #include -#include - /** * Generic validator for any attribute of a feature. */ -class ModelAPI_ShapeValidator : public ModelAPI_Validator +class ModelAPI_ShapeValidator : public ModelAPI_AttributeValidator { public: /// returns True if the attribute is valid. It checks whether the feature of the attribute /// does not contain a selection attribute filled with the same shape - /// \param theFeature a feature to check /// \param theAttribute an attribute to check - /// \param theShape a shape - MODELAPI_EXPORT bool isValid(const FeaturePtr& theFeature, const AttributePtr& theAttribute, - const GeomShapePtr& theShape) const; + /// \param theArguments a filter parameters + MODELAPI_EXPORT virtual bool isValid(const AttributePtr& theAttribute, + const std::list& theArguments) const; }; #endif