Salome HOME
The flushCreated/flushUpdated are obsolete and nobody uses them.
[modules/shaper.git] / src / ModuleBase / ModuleBase_SelectionValidator.h
index 78a29cdfa22bfb0d9e5aab1eaec4ae1febc38e76..a519ed849aded91e4f618c9bb991f4673c76a579 100644 (file)
 
 #include <ModelAPI_Validator.h>
 
+#include <list>
+#include <string>
+
+/**
+* \ingroup Validators
+* A validator of selection
+*/
 class ModuleBase_SelectionValidator : public ModelAPI_Validator
 {
  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