Salome HOME
Make Box sketch and extrusion updated on changing of the Box parameters in property...
[modules/shaper.git] / src / Model / Model_FeatureValidator.h
index 901f48ef7fbbf5f656c4d36c6aba2cf25fe0c6d6..b262ff0ea552b0fee6cbb9d1ba2fc063fdbf4af5 100644 (file)
@@ -9,15 +9,22 @@
 #include <ModelAPI_Feature.h>
 #include <ModelAPI_FeatureValidator.h>
 
-#include <boost/shared_ptr.hpp>
+#include <memory>
+#include <set>
+#include <map>
 
 class Model_FeatureValidator : public ModelAPI_FeatureValidator
 {
+  // not obligatory attributes, not checked for initialization
+  std::map<std::string, std::set<std::string> > myNotObligatory;
  public:
   /// Returns true if feature and/or attributes are valid
   /// \param theFeature the validated feature
-  MODEL_EXPORT virtual bool isValid(const boost::shared_ptr<ModelAPI_Feature>& theFeature,
+  MODEL_EXPORT virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
     const std::list<std::string>& theArguments) const;
+
+  // sets not obligatory attributes, not checked for initialization
+  void registerNotObligatory(std::string theFeature, std::string theAttribute);
 };
 
 #endif