X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_AttributeValidator.h;h=d63aebf584436a12334135d21ff50a9f048c0ac1;hb=3f6a02c80da84b8356412858b060ba22e3148fd7;hp=151c793c21ee3445fdaf36b9eaf5873f6f3ebd3e;hpb=03dd198543d20b3ca0e4eb865f857a0db68e57b7;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_AttributeValidator.h b/src/ModelAPI/ModelAPI_AttributeValidator.h index 151c793c2..d63aebf58 100644 --- a/src/ModelAPI/ModelAPI_AttributeValidator.h +++ b/src/ModelAPI/ModelAPI_AttributeValidator.h @@ -1,8 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: ModelAPI_AttributeValidator.h -// Created: 4 Sep 2014 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2017 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 @@ -17,11 +31,13 @@ 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(); };