1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: BuildPlugin_Validators.h
4 // Created: 22 March 2016
5 // Author: Dmitry Bobylev
7 #ifndef BuildPlugin_Validators_H_
8 #define BuildPlugin_Validators_H_
10 #include <ModelAPI_AttributeValidator.h>
11 #include <ModelAPI_FeatureValidator.h>
13 /// \class BuildPlugin_ValidatorBaseForWire
14 /// \ingroup Validators
15 /// \brief A validator for selection base shapes for wire. Allows to select edges on sketch and
16 /// wires objects that are connected to already selected shapes.
17 class BuildPlugin_ValidatorBaseForWire: public ModelAPI_AttributeValidator
20 //! Returns true if attribute is ok.
21 //! \param[in] theAttribute the checked attribute.
22 //! \param[in] theArguments arguments of the attribute.
23 //! \param[out] theError error message.
24 virtual bool isValid(const AttributePtr& theAttribute,
25 const std::list<std::string>& theArguments,
26 std::string& theError) const;