Salome HOME
Make SHAPER STUDY fields exported in SMESH into MED file
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ExternalValidator.h
index 62d95bfe04eefc4e6d7c8099132fab93f05a6f7d..ece98d0151b65a69448b9e65833dbe8e2069b90b 100644 (file)
@@ -1,8 +1,21 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
-
-// File:        Model_ResultValidators.h
-// Created:     27 Feb 2015
-// Author:      Natalia ERMOLAEVA
+// 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 SketchPlugin_ExternalValidator_H
 #define SketchPlugin_ExternalValidator_H
@@ -10,7 +23,7 @@
 #include <SketchPlugin.h>
 #include <ModelAPI_AttributeValidator.h>
 
-/**\class SketchPlugin_ResultPointValidator
+/**\class SketchPlugin_ExternalValidator
  * \ingroup Validators
  * \brief Validator for the points selection
  *
 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<std::string>& theArguments) const;
+                                           const std::list<std::string>& theArguments,
+                                           Events_InfoMessage& theError) const;
 
 protected:
   /// returns true if the feature of the attribute is external