Salome HOME
Validators return InfoMessage instead of string as an error
[modules/shaper.git] / src / GeomValidators / GeomValidators_ShapeType.h
index 3d2c60e65b9557f83ab0a36b96ed93ee47db88e6..0146cfda77f1779e008fa0534b627129836e1fbb 100644 (file)
@@ -49,7 +49,7 @@ class GeomValidators_ShapeType : public ModelAPI_AttributeValidator
   //! \param[out] theError error message.
   GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
                                              const std::list<std::string>& theArguments,
-                                             std::string& theError) const;
+                                             Events_InfoMessage& theError) const;
 protected:
   /// Convert string to TypeOfShape value
   /// \param theType a string value
@@ -61,7 +61,7 @@ protected:
   /// \param[out] theError error message.
   bool isValidAttribute(const AttributePtr& theAttribute,
                         const TypeOfShape theShapeType,
-                        std::string& theError) const;
+                        Events_InfoMessage& theError) const;
 
   /// Returns true if the attibute's object type satisfies the argument value
   /// \param[in] theObject a checked object
@@ -69,7 +69,7 @@ protected:
   /// \param[out] theError error message.
   bool isValidObject(const ObjectPtr& theObject,
                      const TypeOfShape theShapeType,
-                     std::string& theError) const;
+                     Events_InfoMessage& theError) const;
 
   /// Returns true if the attibute's object type satisfies the argument value
   /// \param[in] theShape a checked shape
@@ -77,7 +77,7 @@ protected:
   /// \param[out] theError error message.
   bool isValidShape(const GeomShapePtr theShape,
                     const TypeOfShape theShapeType,
-                    std::string& theError) const;
+                    Events_InfoMessage& theError) const;
 
 };