Salome HOME
Fix for the issue #593: do not remove naming attribute, but use TNaming_Builder for...
[modules/shaper.git] / src / ParametersPlugin / ParametersPlugin_Validators.h
index 3a4db55c88a8944bd6ede1e74e2ba600260a70b8..be8f285b5c1684edfd38cc0bccafa3e344cadbce 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <ModelAPI_AttributeValidator.h>
 
-#include <regex>
 #include <memory>
 
 class ParametersPlugin_VariableValidator : public ModelAPI_AttributeValidator
@@ -28,8 +27,9 @@ class ParametersPlugin_VariableValidator : public ModelAPI_AttributeValidator
   PARAMETERSPLUGIN_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
                                                const std::list<std::string>& theArguments) const;
 
- private:
-  std::regex myPyVariableRegex;
+ protected:
+  PARAMETERSPLUGIN_EXPORT bool isVariable(const std::string& theString) const;
+
 };
 
 class ParametersPlugin_ExpressionValidator: public ModelAPI_AttributeValidator