Salome HOME
Union of validator and filter functionalities.
[modules/shaper.git] / src / ModuleBase / ModuleBase_ValidatorLinearEdgeOrVertex.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_ValidatorLinearEdgeOrVertex.h
4 // Created:     19 Mar 2015
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef ModuleBase_ValidatorLinearEdgeOrVertex_H
8 #define ModuleBase_ValidatorLinearEdgeOrVertex_H
9
10 #include "ModuleBase.h"
11 #include "ModelAPI_AttributeValidator.h"
12
13 #include <StdSelect_TypeOfEdge.hxx>
14
15 /**
16 * \ingroup Validators
17 * A validator of selection
18 */
19 class ModuleBase_ValidatorLinearEdgeOrVertex : public ModelAPI_AttributeValidator
20 {
21  public:
22    MODULEBASE_EXPORT ModuleBase_ValidatorLinearEdgeOrVertex() {}
23   //! returns true if attribute is valid
24   //! \param theAttribute the checked attribute
25   //! \param theArguments arguments of the attribute
26   MODULEBASE_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
27                                          const std::list<std::string>& theArguments) const;
28 };
29
30 #endif