X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXAO%2FXAO_DoubleStep.cxx;h=791e77c534e1df54912f9efc5e2b7ce35f15e721;hb=745c72679f6346375d5e886b25cc3865f3c4daae;hp=1ea899ae86f078cc947904c36f9ba504f789fe55;hpb=6748dbfda454a839fe666d68d986cc5bd444425c;p=modules%2Fshaper.git diff --git a/src/XAO/XAO_DoubleStep.cxx b/src/XAO/XAO_DoubleStep.cxx index 1ea899ae8..791e77c53 100644 --- a/src/XAO/XAO_DoubleStep.cxx +++ b/src/XAO/XAO_DoubleStep.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2013-2021 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 @@ -23,7 +23,7 @@ using namespace XAO; -DoubleStep::DoubleStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) +DoubleStep::DoubleStep(int step, int stamp, int nbElements, int nbComponents) { m_nbElements = nbElements; m_nbComponents = nbComponents; @@ -56,8 +56,8 @@ std::vector DoubleStep::getValues() return result; } -std::vector DoubleStep::getElement(const int& element) -throw (XAO_Exception) +std::vector DoubleStep::getElement(int element) + { checkElementIndex(element); @@ -65,8 +65,8 @@ throw (XAO_Exception) return result; } -std::vector DoubleStep::getComponent(const int& component) -throw (XAO_Exception) +std::vector DoubleStep::getComponent(int component) + { checkComponentIndex(component); @@ -83,8 +83,8 @@ throw (XAO_Exception) return result; } -const double DoubleStep::getValue(const int& element, const int& component) -throw (XAO_Exception) +double DoubleStep::getValue(int element, int component) + { checkElementIndex(element); checkComponentIndex(component); @@ -92,14 +92,14 @@ throw (XAO_Exception) return m_values[element][component]; } -const std::string DoubleStep::getStringValue(const int& element, const int& component) -throw (XAO_Exception) +const std::string DoubleStep::getStringValue(int element, int component) + { return XaoUtils::doubleToString(getValue(element, component)); } void DoubleStep::setValues(const std::vector& values) -throw (XAO_Exception) + { checkNbValues(values.size()); @@ -112,8 +112,8 @@ throw (XAO_Exception) } } -void DoubleStep::setElement(const int& element, const std::vector& elements) -throw (XAO_Exception) +void DoubleStep::setElement(int element, const std::vector& elements) + { checkElementIndex(element); checkNbComponents(elements.size()); @@ -122,8 +122,8 @@ throw (XAO_Exception) m_values[element][i] = elements[i]; } -void DoubleStep::setComponent(const int& component, const std::vector& components) -throw (XAO_Exception) +void DoubleStep::setComponent(int component, const std::vector& components) + { checkElementIndex(component); checkNbElements(components.size()); @@ -132,8 +132,8 @@ throw (XAO_Exception) m_values[i][component] = components[i]; } -void DoubleStep::setValue(const int& element, const int& component, const double& value) -throw (XAO_Exception) +void DoubleStep::setValue(int element, int component, double value) + { checkElementIndex(element); checkComponentIndex(component); @@ -141,8 +141,8 @@ throw (XAO_Exception) m_values[element][component] = value; } -void DoubleStep::setStringValue(const int& element, const int& component, const std::string& value) -throw (XAO_Exception) +void DoubleStep::setStringValue(int element, int component, const std::string& value) + { setValue(element, component, XaoUtils::stringToDouble(value)); }