Salome HOME
The flushCreated/flushUpdated are obsolete and nobody uses them.
[modules/shaper.git] / src / ModuleBase / ModuleBase_SelectionValidator.h
index 1dd38013969915e35045a4c2caa5412651f7f1e8..a519ed849aded91e4f618c9bb991f4673c76a579 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        ModuleBase_SelectionValidator.h
 // Created:     8 Jul 2014
 // Author:      Vitaly SMETANNIKOV
 
 #include <ModelAPI_Validator.h>
 
+#include <list>
+#include <string>
 
-class ModuleBase_SelectionValidator: public ModelAPI_Validator
+/**
+* \ingroup Validators
+* A validator of selection
+*/
+class ModuleBase_SelectionValidator : public ModelAPI_Validator
 {
-public:
+ public:
+   /// Returns True if selection is valid
+   /// \param theSelection selection instance
   virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0;
+
+   /// Returns True if selection is valid
+   /// \param theSelection selection instance
+   /// \param theArguments list of arguments
+  virtual bool isValid(const ModuleBase_ISelection* theSelection,
+                       const std::list<std::string>& theArguments) const
+  {
+    return isValid(theSelection);
+  }
 };
 
 #endif