Salome HOME
Better management of errors.
[modules/shaper.git] / src / GeomValidators / GeomValidators_Different.h
index 14380dd3e8c031459137f7c1e4dbcaf7e0aa0c8a..f7771c197128139164b7a7d6469daa09ba62cbaa 100644 (file)
@@ -21,12 +21,15 @@ 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.
+   *  \param[out] theError error message.
    *  \returns true if feature is valid.
    */
   GEOMVALIDATORS_EXPORT virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
-                                             const std::list<std::string>& theArguments) const;
+                                             const std::list<std::string>& theArguments,
+                                             Events_InfoMessage& theError) const;
 
-  GEOMVALIDATORS_EXPORT virtual bool isNotObligatory(std::string theFeature, std::string theAttribute);
+  GEOMVALIDATORS_EXPORT virtual
+    bool isNotObligatory(std::string theFeature, std::string theAttribute);
 };
 
 #endif