Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom.git into Dev_1.1.0
[modules/shaper.git] / src / ModuleBase / ModuleBase_SelectionValidator.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_SelectionValidator.h
4 // Created:     8 Jul 2014
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef ModuleBase_SelectionValidator_H
8 #define ModuleBase_SelectionValidator_H
9
10 #include "ModuleBase.h"
11 #include "ModuleBase_ISelection.h"
12
13 #include <ModelAPI_Validator.h>
14
15 #include <list>
16 #include <string>
17
18 /**
19 * \ingroup Validators
20 * A validator of selection
21 */
22 class ModuleBase_SelectionValidator : public ModelAPI_Validator
23 {
24  public:
25   virtual ~ModuleBase_SelectionValidator();
26    /// Returns True if selection is valid
27    /// \param theSelection selection instance
28   virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0;
29
30    /// Returns True if selection is valid
31    /// \param theSelection selection instance
32    /// \param theArguments list of arguments
33   virtual bool isValid(const ModuleBase_ISelection* theSelection,
34                        const std::list<std::string>& theArguments) const;
35
36 };
37
38 #endif