Salome HOME
GeomValidators documentation update
authordbv <dbv@opencascade.com>
Fri, 18 Sep 2015 16:07:38 +0000 (19:07 +0300)
committerdbv <dbv@opencascade.com>
Fri, 18 Sep 2015 16:07:55 +0000 (19:07 +0300)
src/GeomValidators/GeomValidators_BooleanArguments.h
src/GeomValidators/GeomValidators_ConstructionComposite.h
src/GeomValidators/GeomValidators_Different.cpp
src/GeomValidators/GeomValidators_Different.h
src/GeomValidators/GeomValidators_DifferentShapes.h
src/GeomValidators/GeomValidators_Face.h
src/GeomValidators/GeomValidators_Finite.h
src/GeomValidators/GeomValidators_PartitionArguments.h
src/GeomValidators/GeomValidators_Positive.h
src/GeomValidators/GeomValidators_ShapeType.h
src/GeomValidators/GeomValidators_ZeroOffset.h

index d5c9031118d29f0013a20f9d4be9239160eab7bf..1686c8ee4e13c1429e47a26cdf2dcc8b418667fe 100644 (file)
@@ -21,6 +21,7 @@ public:
   /** \brief Returns true if feature and/or attributes are valid.
    *  \param[in] theFeature the validated feature.
    *  \param[in] theArguments the arguments in the configuration file for this validator.
+   *  \param[out] theError error message.
    *  \returns true if feature is valid.
    */
   GEOMVALIDATORS_EXPORT virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
index c9f3163214ff7b7deeb45d60184053548ffc52df..fb37f95bc55a2e8ac63ae63cf0fc060ce8a21f90 100644 (file)
@@ -19,8 +19,9 @@ class GeomValidators_ConstructionComposite : public ModelAPI_AttributeValidator
  public:
    GEOMVALIDATORS_EXPORT GeomValidators_ConstructionComposite() {}
   //! returns true if attribute is valid
-  //! \param theAttribute the checked attribute
-  //! \param theArguments arguments of the attribute
+  //! \param[in] theAttribute the checked attribute
+  //! \param[in] theArguments arguments of the attribute
+  //! \param[out] theError error message.
   GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
                                              const std::list<std::string>& theArguments,
                                              std::string& theError) const;
index 353df10b8d08b423db46210ba24298d0050dc179..94c369c5a516f796d1c6f4f8fe9023901ddd3a25 100644 (file)
@@ -37,10 +37,16 @@ bool isEqualAttributes(const AttributePtr& theLeft, const AttributePtr& theRight
   return false;
 }
 
+/** \class IsEqual
+ *  \ingroup Validators
+ *  \brief Auxiliary class used in std::find_if
+ */
 class IsEqual {
   AttributePtr myAttribute;
 public:
+  /// Constructor
   IsEqual(const AttributePtr& theAttribute) : myAttribute(theAttribute) {}
+  /// \return true in case if AttributePtr is equal with myAttribute
   bool operator()(const AttributePtr& theAttribute) {
     return isEqualAttributes(myAttribute, theAttribute);
   }
index 28cc2c58fe314b476e1ca8060fc2dbbdf1ed6abf..a5be84f7baef37521b22b83551d27c38dba4184d 100644 (file)
@@ -21,6 +21,7 @@ public:
   /** \brief Returns true if feature and/or attributes are valid.
    *  \param[in] theFeature the validated feature.
    *  \param[in] theArguments the arguments in the configuration file for this validator.
+   *  \param[out] theError error message.
    *  \returns true if feature is valid.
    */
   GEOMVALIDATORS_EXPORT virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
index 1fbb004e06c9c6e8315aeb2354cf6d9e94ff45c3..033ef1b3c30be3486dfab6e331392d2bbc893371 100644 (file)
@@ -20,8 +20,9 @@ class GeomValidators_DifferentShapes : public ModelAPI_AttributeValidator
 public:
   /// returns True if the attribute is valid. It checks whether the feature of the attribute
   /// does not contain a selection attribute filled with the same shape
-  /// \param theAttribute an attribute to check
-  /// \param theArguments a filter parameters
+  /// \param[in] theAttribute an attribute to check
+  /// \param[in] theArguments a filter parameters
+  /// \param[out] theError error message.
   MODELAPI_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
                                        const std::list<std::string>& theArguments,
                                        std::string& theError) const;
index c66d4b315c14e978a81b54803d1b50d509b5455c..b10cecff75b70270dd243a7696729d0aa24e50fd 100644 (file)
@@ -21,8 +21,9 @@ class GeomValidators_Face : public ModelAPI_AttributeValidator
  public:
    GEOMVALIDATORS_EXPORT GeomValidators_Face() {}
   //! returns true if attribute is valid
-  //! \param theAttribute the checked attribute
-  //! \param theArguments arguments of the attribute
+  //! \param[in] theAttribute the checked attribute
+  //! \param[in] theArguments arguments of the attribute
+  //! \param[out] theError error message.
   GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
                                              const std::list<std::string>& theArguments,
                                              std::string& theError) const;
index 927142dd66cc6addf3eb32a80611c87bf53effd0..85b5b9803730fb806d775292833165fa2a9d0e61 100755 (executable)
@@ -18,8 +18,9 @@ class GeomValidators_Finite : public ModelAPI_AttributeValidator
 {
 public:
   //! returns true if attribute is valid
-  //! \param theAttribute the checked attribute
-  //! \param theArguments arguments of the attribute
+  //! \param[in] theAttribute the checked attribute
+  //! \param[in] theArguments arguments of the attribute
+  //! \param[out] theError error message.
   GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
                                              const std::list<std::string>& theArguments,
                                              std::string& theError) const;
index 8233cbfbc888eacdcc7fb0828844fa4738bf4539..1b32070018ee69f2f5d49f193f714b725f0e2589 100644 (file)
@@ -21,6 +21,7 @@ public:
   /** \brief Returns true if feature and/or attributes are valid.
    *  \param[in] theFeature the validated feature.
    *  \param[in] theArguments the arguments in the configuration file for this validator.
+   *  \param[out] theError error message.
    *  \returns true if feature is valid.
    */
   GEOMVALIDATORS_EXPORT virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
index 8c88ab08d7ccff62d85556f509308fd0ab5fbc29..0e15c77d27a5a2101099ff33eabe328f91179227 100644 (file)
@@ -19,8 +19,9 @@ public:
   //! Constructor for only one instance per application: will register the validator
   GeomValidators_Positive();
   //! returns true if attribute is valid
-  //! \param theAttribute the checked attribute
-  //! \param theArguments arguments of the attribute
+  //! \param[in] theAttribute the checked attribute
+  //! \param[in] theArguments arguments of the attribute
+  //! \param[out] theError error message.
   GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
                                              const std::list<std::string>& theArguments,
                                              std::string& theError) const;
index fd6e24e1888cd45f9a81070565c545e977d53497..57de1470897b06bba892e4ab5678fb3a42b3cc38 100644 (file)
@@ -23,7 +23,7 @@
 class GeomValidators_ShapeType : public ModelAPI_AttributeValidator
 {
  public:
-  //  the edge type
+  /// Type of shape
   enum TypeOfShape
   {
     Empty,
@@ -41,8 +41,9 @@ class GeomValidators_ShapeType : public ModelAPI_AttributeValidator
  public:
    GEOMVALIDATORS_EXPORT GeomValidators_ShapeType() {}
   //! Returns true if attribute has shape type listed in the parameter arguments
-  //! \param theAttribute the checked attribute
-  //! \param theArguments arguments of the attribute
+  //! \param[in] theAttribute the checked attribute
+  //! \param[in] theArguments arguments of the attribute
+  //! \param[out] theError error message.
   GEOMVALIDATORS_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
                                              const std::list<std::string>& theArguments,
                                              std::string& theError) const;
@@ -52,22 +53,25 @@ protected:
   static TypeOfShape shapeType(const std::string& theType);
 
   /// Returns true if the attibute's object type satisfies the argument value
-  /// \param theAttribute a checked attribute
-  /// \param theArgument a parameter
+  /// \param[in] theAttribute a checked attribute
+  /// \param[in] theShapeType a type of shape
+  /// \param[out] theError error message.
   bool isValidAttribute(const AttributePtr& theAttribute,
                         const TypeOfShape theShapeType,
                         std::string& theError) const;
 
   /// Returns true if the attibute's object type satisfies the argument value
-  /// \param theAttribute a checked object
-  /// \param theShapeType a shape type
+  /// \param[in] theObject a checked object
+  /// \param[in] theShapeType a shape type
+  /// \param[out] theError error message.
   bool isValidObject(const ObjectPtr& theObject,
                      const TypeOfShape theShapeType,
                      std::string& theError) const;
 
   /// Returns true if the attibute's object type satisfies the argument value
-  /// \param theShape a checked shape
-  /// \param theShapeType a shape type
+  /// \param[in] theShape a checked shape
+  /// \param[in] theShapeType a shape type
+  /// \param[out] theError error message.
   bool isValidShape(const GeomShapePtr theShape,
                     const TypeOfShape theShapeType,
                     std::string& theError) const;
index 91c7dcad93e49b562fd3ea541db74ede2baf70b2..64fd4ab63ee15a425a0cb5aaf432b782d697c51d 100644 (file)
@@ -21,6 +21,7 @@ public:
   /** \brief Returns true if feature and/or attributes are valid.
    *  \param[in] theFeature the validated feature.
    *  \param[in] theArguments the arguments in the configuration file for this validator.
+   *  \param[out] theError error message.
    *  \return true if feature is valid.
    */
   GEOMVALIDATORS_EXPORT virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,