1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_SelectionValidator.h
5 // Author: Vitaly SMETANNIKOV
7 #ifndef ModuleBase_SelectionValidator_H
8 #define ModuleBase_SelectionValidator_H
10 #include "ModuleBase.h"
11 #include "ModuleBase_ISelection.h"
13 #include <ModelAPI_Validator.h>
19 * A validator of selection
21 class ModuleBase_SelectionValidator : public ModelAPI_Validator
24 /// Returns True if selection is valid
25 /// \param theSelection selection instance
26 virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0;
28 /// Returns True if selection is valid
29 /// \param theSelection selection instance
30 /// \param theArguments list of arguments
31 virtual bool isValid(const ModuleBase_ISelection* theSelection,
32 const std::list<std::string>& theArguments) const
34 return isValid(theSelection);