X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_SelectionValidator.h;h=60d9574001f12752d0e654da7b64755fc7c46c6d;hb=af851100774c4ff33b515c884abe0cd03c3f0528;hp=180d59936a37308129a606c3f15429a1d883ec5e;hpb=47c024e673a2da5094f8f233124c412d0fcdc9b4;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_SelectionValidator.h b/src/ModuleBase/ModuleBase_SelectionValidator.h index 180d59936..60d957400 100644 --- a/src/ModuleBase/ModuleBase_SelectionValidator.h +++ b/src/ModuleBase/ModuleBase_SelectionValidator.h @@ -15,15 +15,23 @@ #include #include +/** +* \ingroup Validators +* A validator of selection +*/ class ModuleBase_SelectionValidator : public ModelAPI_Validator { public: + /// Returns True if selection is valid + /// \param theSelection selection instance + /// \param theArguments list of arguments + virtual MODULEBASE_EXPORT bool isValid(const ModuleBase_ISelection* theSelection, + const std::list& theArguments) const; + + protected: + /// Returns True if selection is valid + /// \param theSelection selection instance virtual bool isValid(const ModuleBase_ISelection* theSelection) const = 0; - virtual bool isValid(const ModuleBase_ISelection* theSelection, - const std::list& theArguments) const - { - return isValid(theSelection); - } }; #endif