-// Copyright (C) 2017-20xx CEA/DEN, EDF R&D
+// Copyright (C) 2017-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include "GeomValidators_ValueOrder.h"
#include <ModelAPI_Session.h>
#include <ModelAPI_Validator.h>
+// LCOV_EXCL_START
static double attributeValue(AttributePtr theAttr)
{
AttributeIntegerPtr anIntAttr = std::dynamic_pointer_cast<ModelAPI_AttributeInteger>(theAttr);
return true;
}
-
+// LCOV_EXCL_STOP
/// Global instance for validators factory
aFactory->registerValidator("GeomValidators_GreaterOrEqual", this);
}
+// LCOV_EXCL_START
bool GeomValidators_GreaterOrEqual::isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
Events_InfoMessage& theError) const
{
return isValidOrder(theAttribute, theArguments, theError, &isGreaterOrEqual);
}
-
+// LCOV_EXCL_STOP
GeomValidators_LessOrEqual::GeomValidators_LessOrEqual()
aFactory->registerValidator("GeomValidators_LessOrEqual", this);
}
+// LCOV_EXCL_START
bool GeomValidators_LessOrEqual::isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
Events_InfoMessage& theError) const
{
return isValidOrder(theAttribute, theArguments, theError, &isLessOrEqual);
}
+// LCOV_EXCL_STOP