Salome HOME
Merge branch 'Dev_2.1.0' of salome:modules/shaper into Dev_2.1.0
[modules/shaper.git] / src / GeomValidators / GeomValidators_BooleanArguments.cpp
index 738b1ecc056384f0c6336cb38097cb06a95cb651..b54344510c0a0be1fc56640cfabd15685172529f 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 
-// File:        GeomValidators_BooleanArguments.h
+// File:        GeomValidators_BooleanArguments.cpp
 // Created:     30 June 2015
 // Author:      Dmitry Bobylev
 
 
 //=================================================================================================
 bool GeomValidators_BooleanArguments::isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
-                                              const std::list<std::string>& theArguments) const
+                                              const std::list<std::string>& theArguments,
+                                              std::string& theError) const
 {
   if(theArguments.size() != 3) {
+    theError = "Wrong number of arguments (expected 3).";
     return false;
   }
 
@@ -45,6 +47,7 @@ bool GeomValidators_BooleanArguments::isValid(const std::shared_ptr<ModelAPI_Fea
     return true;
   }
 
+  theError = "Not enough arguments";
   return false;
 }