1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: SketchShapePlugin_Validators.h
4 // Created: 25 Nov 2015
5 // Author: Natalia ERMOLAEVA
7 #ifndef SKETCHSHAPEPLUGIN_VALIDATORS_H
8 #define SKETCHSHAPEPLUGIN_VALIDATORS_H
10 #include "SketchShapePlugin.h"
11 #include <ModelAPI_AttributeValidator.h>
13 /**\class SketchShapePlugin_FeatureValidator
15 * \brief Validator for an attribute of sketch shape feature.
19 class SketchShapePlugin_FeatureValidator : public ModelAPI_AttributeValidator
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;