Salome HOME
Remove unnecessary variable
[modules/shaper.git] / src / GeomValidators / GeomValidators_Face.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        GeomValidators_Face.h
4 // Created:     20 Mar 2015
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef GeomValidators_Face_H
8 #define GeomValidators_Face_H
9
10 #include "GeomValidators.h"
11 #include "ModelAPI_AttributeValidator.h"
12
13 #include <GeomAbs_SurfaceType.hxx>
14
15 /**
16 * \ingroup Validators
17 * A validator of selection
18 */
19 class GeomValidators_Face : public ModelAPI_AttributeValidator
20 {
21  public:
22    GEOMVALIDATORS_EXPORT GeomValidators_Face() {}
23   //! returns true if attribute is valid
24   //! \param[in] theAttribute the checked attribute
25   //! \param[in] theArguments arguments of the attribute
26   //! \param[out] theError error message.
27   GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
28                                              const std::list<std::string>& theArguments,
29                                              std::string& theError) const;
30 protected:
31   /// Convert string to TypeOfFace value
32   /// \param theType a string value
33   GEOMVALIDATORS_EXPORT static GeomAbs_SurfaceType faceType(const std::string& theType);
34 };
35
36 #endif