X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FGeomValidators%2FGeomValidators_PartitionArguments.h;fp=src%2FGeomValidators%2FGeomValidators_PartitionArguments.h;h=8233cbfbc888eacdcc7fb0828844fa4738bf4539;hb=020e7187ee88afbd18286f149536cdef61d9f61e;hp=0000000000000000000000000000000000000000;hpb=de115f80d6cb61058a53a20ba1a96ad77d35f661;p=modules%2Fshaper.git diff --git a/src/GeomValidators/GeomValidators_PartitionArguments.h b/src/GeomValidators/GeomValidators_PartitionArguments.h new file mode 100644 index 000000000..8233cbfbc --- /dev/null +++ b/src/GeomValidators/GeomValidators_PartitionArguments.h @@ -0,0 +1,34 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + +// File: GeomValidators_PartitionArguments.h +// Created: 17 September 2015 +// Author: Dmitry Bobylev + +#ifndef GeomValidators_PartitionArguments_H +#define GeomValidators_PartitionArguments_H + +#include +#include +#include + +/** \class GeomValidators_PartitionArguments + * \ingroup Validators + * \brief Validates that partition operation have enough arguments. + */ +class GeomValidators_PartitionArguments : public ModelAPI_FeatureValidator +{ +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. + * \returns true if feature is valid. + */ + GEOMVALIDATORS_EXPORT virtual bool isValid(const std::shared_ptr& theFeature, + const std::list& theArguments, + std::string& theError) const; + + /// \return true if the attribute in feature is not obligatory for the feature execution. + GEOMVALIDATORS_EXPORT virtual bool isNotObligatory(std::string theFeature, std::string theAttribute); +}; + +#endif