X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModelAPI%2FModelAPI_AttributeValidator.h;h=0c5243f9b02a1b97942671e08818854b03c6cbeb;hb=50a8df0c6a66da8067b16155e5ae39f8f26a7ebc;hp=f059b9c659d4571ff5f03ed0b061bdd81c1a87a4;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_AttributeValidator.h b/src/ModelAPI/ModelAPI_AttributeValidator.h index f059b9c65..0c5243f9b 100644 --- a/src/ModelAPI/ModelAPI_AttributeValidator.h +++ b/src/ModelAPI/ModelAPI_AttributeValidator.h @@ -1,12 +1,26 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: ModelAPI_AttributeValidator.h -// Created: 4 Sep 2014 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef ModelAPI_AttributeValidator_H #define ModelAPI_AttributeValidator_H +#include #include #include @@ -16,11 +30,15 @@ class ModelAPI_AttributeValidator : public ModelAPI_Validator { public: - //! returns true if attribute is valid + //! \returns true if attribute is valid //! \param theAttribute the checked attribute //! \param theArguments arguments of the attribute + //! \param theError the error string message if validation fails virtual bool isValid(const AttributePtr& theAttribute, - const std::list& theArguments) const = 0; + const std::list& theArguments, + Events_InfoMessage& theError) const = 0; + + MODELAPI_EXPORT ~ModelAPI_AttributeValidator(); }; #endif