Salome HOME
Make general validation mechanism also for attributes the validate method for feature...
[modules/shaper.git] / src / Model / Model_FeatureValidator.h
1 // File:        ModelAPI_FeatureValidator.h
2 // Created:     8 Jul 2014
3 // Author:      Vitaly SMETANNIKOV
4
5 #ifndef Model_FeatureValidator_H
6 #define Model_FeatureValidator_H
7
8 #include <Model.h>
9 #include <ModelAPI_Feature.h>
10 #include <ModelAPI_FeatureValidator.h>
11
12 #include <boost/shared_ptr.hpp>
13
14 class Model_FeatureValidator : public ModelAPI_FeatureValidator
15 {
16  public:
17   /// Returns true if feature and/or attributes are valid
18   /// \param theFeature the validated feature
19   MODEL_EXPORT virtual bool isValid(const boost::shared_ptr<ModelAPI_Feature>& theFeature,
20     const std::list<std::string>& theArguments) const;
21 };
22
23 #endif