Salome HOME
Merge branch 'Dev_1.2.0' of newgeom:newgeom into Dev_1.2.0
[modules/shaper.git] / src / ModuleBase / ModuleBase_SelectionValidator.h
index 4863146bcd644d75c9e6fe92c23daa869b95c714..60d9574001f12752d0e654da7b64755fc7c46c6d 100644 (file)
 #include <string>
 
 /**
-* \class A validator of selection
+* \ingroup Validators
+* A validator of selection
 */
 class ModuleBase_SelectionValidator : public ModelAPI_Validator
 {
  public:
-   /// \fn Returns True if selection is valid
+   /// Returns True if selection is valid
    /// \param theSelection selection instance
-  virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0;
+   /// \param theArguments list of arguments
+  virtual MODULEBASE_EXPORT bool isValid(const ModuleBase_ISelection* theSelection,
+                       const std::list<std::string>& theArguments) const;
 
-   /// \fn Returns True if selection is valid
+ protected:
+   /// 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);
-  }
+  virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0;
 };
 
 #endif