X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomValidators%2FGeomValidators_ZeroOffset.h;h=ad4aac7c74f5f21580c8188da07c62c7d03f1015;hb=be64ac512378281d54e4a73e8edb68ae43d0c5a7;hp=b0ce4eb67001e8aa55b790088a6282d3e4256f0f;hpb=64e9d01b48f8c4e6e22919ebceeed715d613485e;p=modules%2Fshaper.git diff --git a/src/GeomValidators/GeomValidators_ZeroOffset.h b/src/GeomValidators/GeomValidators_ZeroOffset.h index b0ce4eb67..ad4aac7c7 100644 --- a/src/GeomValidators/GeomValidators_ZeroOffset.h +++ b/src/GeomValidators/GeomValidators_ZeroOffset.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomValidators_ZeroOffset.h -// Created: 13 May 2015 -// Author: Dmitry Bobylev +// Copyright (C) 2014-2019 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 GeomValidators_ZeroOffset_H #define GeomValidators_ZeroOffset_H @@ -21,15 +34,16 @@ public: /** \brief Returns true if feature and/or attributes are valid. * \param[in] theFeature the validated feature. * \param[in] theArguments the arguments in the configuration file for this validator. - * \n First pair of arguments should be bounding planes id. - * \n Second pair of arguments should be offsets id. - * \returns true if feature is valid. + * \param[out] theError error message. + * \return true if feature is valid. */ GEOMVALIDATORS_EXPORT virtual bool isValid(const std::shared_ptr& theFeature, - const std::list& theArguments) const; + const std::list& theArguments, + Events_InfoMessage& theError) const; /// \return true if the attribute in feature is not obligatory for the feature execution. - GEOMVALIDATORS_EXPORT virtual bool isNotObligatory(std::string theFeature, std::string theAttribute); + GEOMVALIDATORS_EXPORT virtual + bool isNotObligatory(std::string theFeature, std::string theAttribute); }; #endif