X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FSketchPlugin%2FSketchPlugin_ExternalValidator.h;h=85f054e575a1b8f8cc1b412918d1d98cd94a3291;hb=5f280e7dc45a1f3345fe0f3a9080ac10265219e5;hp=821b27de77b9c3cd5ea2247d55deb25cbe8edea1;hpb=a882543778be806ff44fb15ebfdc5a6b3b8993e6;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ExternalValidator.h b/src/SketchPlugin/SketchPlugin_ExternalValidator.h index 821b27de7..85f054e57 100644 --- a/src/SketchPlugin/SketchPlugin_ExternalValidator.h +++ b/src/SketchPlugin/SketchPlugin_ExternalValidator.h @@ -1,8 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> - -// File: Model_ResultValidators.h -// Created: 27 Feb 2015 -// Author: Natalia ERMOLAEVA +// 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 SketchPlugin_ExternalValidator_H #define SketchPlugin_ExternalValidator_H @@ -19,14 +33,15 @@ class SketchPlugin_ExternalValidator : public ModelAPI_AttributeValidator { public: - /// returns true if the feature of attribute do not contain external features in the given attribute and + /// returns true if the feature of attribute do not contain external features + /// in the given attribute and /// among attributes listed in the arguments /// \param theAttribute an attribute to check /// \param theArguments a filter parameters /// \param theError error message SKETCHPLUGIN_EXPORT virtual bool isValid(const AttributePtr& theAttribute, const std::list& theArguments, - std::string& theError) const; + Events_InfoMessage& theError) const; protected: /// returns true if the feature of the attribute is external