Salome HOME
Added selection validator for intersection. Fixed dll exports.
[modules/shaper.git] / src / GeomValidators / GeomValidators_BooleanSelection.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        GeomValidators_BooleanSelection.h
4 // Created:     3 Feb 2016
5 // Author:      Dmitry Bobylev
6
7 #ifndef GeomValidators_BooleanSelection_H
8 #define GeomValidators_BooleanSelection_H
9
10 #include <GeomValidators.h>
11
12 #include <ModelAPI_AttributeValidator.h>
13 #include <ModelAPI_Attribute.h>
14
15 /// \class GeomValidators_ZeroOffset
16 /// \ingroup Validators
17 /// \brief Validates selection for boolean operation.
18 class GeomValidators_BooleanSelection: public ModelAPI_AttributeValidator
19 {
20 public:
21   /// \return True if the attribute is valid. It checks whether the selection
22   /// is acceptable for boolean operation.
23   /// \param[in] theAttribute an attribute to check.
24   /// \param[in] theArguments a filter parameters.
25   /// \param[out] theError error message.
26   GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
27                                              const std::list<std::string>& theArguments,
28                                              std::string& theError) const;
29 };
30
31 #endif