* used: it checks each argument of the feature and if one of it is not valid (and obligatory),
* the hole feature is invalid.
*/
-class ModelAPI_FeatureValidator : public ModelAPI_Validator
+class MODELAPI_EXPORT ModelAPI_FeatureValidator : public ModelAPI_Validator
{
public:
+ /// Default constructor
+ ModelAPI_FeatureValidator();
+ /// Virtual destructor
+ virtual ~ModelAPI_FeatureValidator();
+
/// Returns true if feature and/or attributes are valid
/// \param theFeature the validated feature
/// \param theArguments list of string, feature attribute names: dependent attributes
virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
- const std::list<std::string>& theArguments) const = 0;
+ const std::list<std::string>& theArguments,
+ std::string& theError) const = 0;
/// Returns true if the attribute in feature is not obligatory for the feature execution
virtual bool isNotObligatory(std::string theFeature, std::string theAttribute) = 0;