1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomValidators_PartitionArguments.h
4 // Created: 17 September 2015
5 // Author: Dmitry Bobylev
7 #ifndef GeomValidators_PartitionArguments_H
8 #define GeomValidators_PartitionArguments_H
10 #include <GeomValidators.h>
11 #include <ModelAPI_Feature.h>
12 #include <ModelAPI_FeatureValidator.h>
14 /** \class GeomValidators_PartitionArguments
16 * \brief Validates that partition operation have enough arguments.
18 class GeomValidators_PartitionArguments : public ModelAPI_FeatureValidator
21 /** \brief Returns true if feature and/or attributes are valid.
22 * \param[in] theFeature the validated feature.
23 * \param[in] theArguments the arguments in the configuration file for this validator.
24 * \param[out] theError error message.
25 * \returns true if feature is valid.
27 GEOMVALIDATORS_EXPORT virtual bool isValid(const std::shared_ptr<ModelAPI_Feature>& theFeature,
28 const std::list<std::string>& theArguments,
29 std::string& theError) const;
31 /// \return true if the attribute in feature is not obligatory for the feature execution.
32 GEOMVALIDATORS_EXPORT virtual bool isNotObligatory(std::string theFeature, std::string theAttribute);