Salome HOME
Construction of vertices/edges/faces on the base of sketch: a special group box in...
[modules/shaper.git] / src / SketchShapePlugin / SketchShapePlugin_Validators.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 // File:        SketchShapePlugin_Validators.h
4 // Created:     25 Nov 2015
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef SKETCHSHAPEPLUGIN_VALIDATORS_H
8 #define SKETCHSHAPEPLUGIN_VALIDATORS_H
9
10 #include "SketchShapePlugin.h"
11 #include <ModelAPI_AttributeValidator.h>
12
13 /**\class SketchShapePlugin_FeatureValidator
14  * \ingroup Validators
15  * \brief Validator for an attribute of sketch shape feature.
16  *
17  * It is empty.
18  */
19 class SketchShapePlugin_FeatureValidator : public ModelAPI_AttributeValidator
20 {
21  public:
22   //! returns true if attribute is valid
23   //! \param theAttribute the checked attribute
24   //! \param theArguments arguments of the attribute
25   //! \param theError error message
26   virtual bool isValid(const AttributePtr& theAttribute,
27                        const std::list<std::string>& theArguments,
28                        std::string& theError) const;
29 };
30
31 #endif