-// Copyright (C) 2014-2017 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2019 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_ShapeType.h"
if (MyShapeTypes.find(aType) != MyShapeTypes.end())
return MyShapeTypes[aType];
+// LCOV_EXCL_START
Events_InfoMessage("Shape type defined in XML is not implemented!").send();
return AnyShape;
+// LCOV_EXCL_STOP
}
+// LCOV_EXCL_START
std::string getShapeTypeDescription(const GeomValidators_ShapeType::TypeOfShape& theType)
{
std::string aValue = "";
}
return aValue;
}
+// LCOV_EXCL_STOP
bool GeomValidators_ShapeType::isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments,
std::string anAttributeType = aRefAttr->attributeType();
aValid = anAttributeType == GeomDataAPI_Point2D::typeId();
if (!aValid) {
+// LCOV_EXCL_START
theError = "Shape type is \"%1\", it should be \"%2\"";
theError.arg(anAttributeType).arg(getShapeTypeDescription(theShapeType));
+// LCOV_EXCL_STOP
}
}
}
}
}
else {
+// LCOV_EXCL_START
aValid = false;
theError = "The attribute with the %1 type is not processed";
theError.arg(anAttributeType);
+// LCOV_EXCL_STOP
}
if (aValid)
theError = "";