X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_FeatureValidator.h;h=86f287c99460cf08dfe963efb05b60f8fad6cd69;hb=3070f65d8043025320863a37498bdfc1d3751651;hp=901f48ef7fbbf5f656c4d36c6aba2cf25fe0c6d6;hpb=cb7a02e2d7e5f4c675571888b8119a8c58069a0d;p=modules%2Fshaper.git diff --git a/src/Model/Model_FeatureValidator.h b/src/Model/Model_FeatureValidator.h index 901f48ef7..86f287c99 100644 --- a/src/Model/Model_FeatureValidator.h +++ b/src/Model/Model_FeatureValidator.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModelAPI_FeatureValidator.h // Created: 8 Jul 2014 // Author: Vitaly SMETANNIKOV @@ -9,15 +11,25 @@ #include #include -#include +#include +#include +#include class Model_FeatureValidator : public ModelAPI_FeatureValidator { + // not obligatory attributes, not checked for initialization + std::map > 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& theFeature, + MODEL_EXPORT virtual bool isValid(const std::shared_ptr& theFeature, const std::list& theArguments) const; + + // 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 + virtual bool isNotObligatory(std::string theFeature, std::string theAttribute); }; #endif