Salome HOME
Update the doxygen documentation
[modules/shaper.git] / src / Model / Model_FeatureValidator.h
index 86f287c99460cf08dfe963efb05b60f8fad6cd69..e412301fec5dfbad8cda15b775f6c0f397eb7632 100644 (file)
 #include <set>
 #include <map>
 
+/**\class Model_FeatureValidator
+ * \ingroup DataModel
+ * \brief The geneneric validator for the whole feature.
+ *
+ * Can be redefined for some specific feature, but by default for each feature this validator is
+ * used: it checks each argument of the feature and if one of it is not valid (and obligatory),
+ * the hole feature is invalid.
+ */
 class Model_FeatureValidator : public ModelAPI_FeatureValidator
 {
   // not obligatory attributes, not checked for initialization
   std::map<std::string, std::set<std::string> > myNotObligatory;
- public:
+public:
   /// Returns true if feature and/or attributes are valid
   /// \param theFeature the validated feature
+  /// \param theArguments the arguments in the configuration file for this validator
+  /// \returns true if feature is valid
   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
+  /// sets not obligatory attributes, not checked for initialization
   virtual void registerNotObligatory(std::string theFeature, std::string theAttribute);
 
   /// Returns true if the attribute in feature is not obligatory for the feature execution