X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXAO%2FXAO_StringStep.cxx;h=3bfcfa6ab0536ddb86930ab180a117bee4c68316;hb=9a06f255338dc4cd38cfcdf724fe72306cea29a3;hp=fe117e92f898b4a7dd71829c981c2442aa5d314c;hpb=5b6031b015602aa07f5a6fc668c13ac3faf7a8a9;p=modules%2Fshaper.git diff --git a/src/XAO/XAO_StringStep.cxx b/src/XAO/XAO_StringStep.cxx index fe117e92f..3bfcfa6ab 100644 --- a/src/XAO/XAO_StringStep.cxx +++ b/src/XAO/XAO_StringStep.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2013-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 @@ -22,7 +22,7 @@ using namespace XAO; -StringStep::StringStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents) +StringStep::StringStep(int step, int stamp, int nbElements, int nbComponents) { m_nbElements = nbElements; m_nbComponents = nbComponents; @@ -55,8 +55,8 @@ std::vector StringStep::getValues() return result; } -std::vector StringStep::getElement(const int& element) -throw (XAO_Exception) +std::vector StringStep::getElement(int element) + { checkElementIndex(element); @@ -64,8 +64,8 @@ throw (XAO_Exception) return result; } -std::vector StringStep::getComponent(const int& component) -throw (XAO_Exception) +std::vector StringStep::getComponent(int component) + { checkComponentIndex(component); @@ -82,8 +82,8 @@ throw (XAO_Exception) return result; } -const std::string StringStep::getValue(const int& element, const int& component) -throw (XAO_Exception) +const std::string StringStep::getValue(int element, int component) + { checkElementIndex(element); checkComponentIndex(component); @@ -91,14 +91,14 @@ throw (XAO_Exception) return m_values[element][component]; } -const std::string StringStep::getStringValue(const int& element, const int& component) -throw (XAO_Exception) +const std::string StringStep::getStringValue(int element, int component) + { return getValue(element, component); } void StringStep::setValues(const std::vector& values) -throw (XAO_Exception) + { checkNbValues(values.size()); @@ -111,8 +111,8 @@ throw (XAO_Exception) } } -void StringStep::setElement(const int& element, const std::vector& elements) -throw (XAO_Exception) +void StringStep::setElement(int element, const std::vector& elements) + { checkElementIndex(element); checkNbComponents(elements.size()); @@ -121,8 +121,8 @@ throw (XAO_Exception) m_values[element][i] = elements[i]; } -void StringStep::setComponent(const int& component, const std::vector& components) -throw (XAO_Exception) +void StringStep::setComponent(int component, const std::vector& components) + { checkElementIndex(component); checkNbElements(components.size()); @@ -131,8 +131,8 @@ throw (XAO_Exception) m_values[i][component] = components[i]; } -void StringStep::setValue(const int& element, const int& component, const std::string& value) -throw (XAO_Exception) +void StringStep::setValue(int element, int component, const std::string& value) + { checkElementIndex(element); checkComponentIndex(component); @@ -140,8 +140,8 @@ throw (XAO_Exception) m_values[element][component] = value; } -void StringStep::setStringValue(const int& element, const int& component, const std::string& value) -throw (XAO_Exception) +void StringStep::setStringValue(int element, int component, const std::string& value) + { setValue(element, component, value); }