Salome HOME
updated copyright message
[modules/shaper.git] / src / BuildPlugin / BuildPlugin_Validators.h
index 116d44afcfefc596cde350b124f9998c093a11d5..709e9d5acf9bb0928c416f694f3f803bb8088b8a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -133,4 +133,19 @@ public:
                         Events_InfoMessage& theError) const;
 };
 
+ /// \class BuildPlugin_ValidatorExpression
+ /// \ingroup Validators
+ /// \brief Validator for the expression of parameter.
+class BuildPlugin_ValidatorExpressionInterpolation: public ModelAPI_AttributeValidator
+{
+public:
+   //! Returns true if attribute has a valid parameter expression.
+   //! \param theAttribute the checked attribute
+   //! \param theArguments arguments of the attribute
+   //! \param theError the error string message if validation fails
+   virtual bool isValid(const AttributePtr& theAttribute,
+                        const std::list<std::string>& theArguments,
+                        Events_InfoMessage& theError) const;
+};
+
 #endif