Salome HOME
Issue #273: Add copyright string
[modules/shaper.git] / src / ModelAPI / ModelAPI_FeatureValidator.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModelAPI_FeatureValidator.h
4 // Created:     8 Jul 2014
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef ModelAPI_FeatureValidator_H
8 #define ModelAPI_FeatureValidator_H
9
10 #include "ModelAPI.h"
11 #include "ModelAPI_Validator.h"
12
13 class ModelAPI_FeatureValidator : public ModelAPI_Validator
14 {
15  public:
16   /// Returns true if feature and/or attributes are valid
17   /// \param theFeature the validated feature
18   /// \param theAttr the validated attribute ID, empty string of feature is validated
19   /// \param theArguments list of string, feature attribute names: dependent attributes
20   virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
21     const std::list<std::string>& theArguments) const = 0;
22
23   /// Returns true if the attribute in feature is not obligatory for the feature execution
24   virtual bool isNotObligatory(std::string theFeature, std::string theAttribute) = 0;
25 };
26
27 #endif