X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXAO%2FXAO_IntegerStep.cxx;h=2d32331a30e5fa6613d443e4e34e5b22345632f8;hb=b6f0965afb72083a5234f9b4fb0b233adaaf8d9d;hp=dbd2f5ef049d1dc2801a99cfc5aff19353e79f8a;hpb=df260abc619ded3d424fed72772226ca63e3c90b;p=modules%2Fgeom.git diff --git a/src/XAO/XAO_IntegerStep.cxx b/src/XAO/XAO_IntegerStep.cxx index dbd2f5ef0..2d32331a3 100644 --- a/src/XAO/XAO_IntegerStep.cxx +++ b/src/XAO/XAO_IntegerStep.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2020 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2013-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // 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; -IntegerStep::IntegerStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) +IntegerStep::IntegerStep(int step, int stamp, int nbElements, int nbComponents) { m_nbElements = nbElements; m_nbComponents = nbComponents; @@ -56,8 +56,8 @@ std::vector IntegerStep::getValues() return result; } -std::vector IntegerStep::getElement(const int& element) -throw (XAO_Exception) +std::vector IntegerStep::getElement(int element) + { checkElementIndex(element); @@ -65,8 +65,8 @@ throw (XAO_Exception) return result; } -std::vector IntegerStep::getComponent(const int& component) -throw (XAO_Exception) +std::vector IntegerStep::getComponent(int component) + { checkComponentIndex(component); @@ -83,8 +83,8 @@ throw (XAO_Exception) return result; } -const int IntegerStep::getValue(const int& element, const int& component) -throw (XAO_Exception) +int IntegerStep::getValue(int element, int component) + { checkElementIndex(element); checkComponentIndex(component); @@ -92,14 +92,14 @@ throw (XAO_Exception) return m_values[element][component]; } -const std::string IntegerStep::getStringValue(const int& element, const int& component) -throw (XAO_Exception) +const std::string IntegerStep::getStringValue(int element, int component) + { return XaoUtils::intToString(getValue(element, component)); } void IntegerStep::setValues(const std::vector& values) -throw (XAO_Exception) + { checkNbValues(values.size()); @@ -112,8 +112,8 @@ throw (XAO_Exception) } } -void IntegerStep::setElement(const int& element, const std::vector& elements) -throw (XAO_Exception) +void IntegerStep::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 IntegerStep::setComponent(const int& component, const std::vector& components) -throw (XAO_Exception) +void IntegerStep::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 IntegerStep::setValue(const int& element, const int& component, const int& value) -throw (XAO_Exception) +void IntegerStep::setValue(int element, int component, int value) + { checkElementIndex(element); checkComponentIndex(component); @@ -141,8 +141,8 @@ throw (XAO_Exception) m_values[element][component] = value; } -void IntegerStep::setStringValue(const int& element, const int& component, const std::string& value) -throw (XAO_Exception) +void IntegerStep::setStringValue(int element, int component, const std::string& value) + { setValue(element, component, XaoUtils::stringToInt(value)); }