Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Copyright update 2022
[modules/geom.git]
/
src
/
XAO
/
XAO_IntegerStep.cxx
diff --git
a/src/XAO/XAO_IntegerStep.cxx
b/src/XAO/XAO_IntegerStep.cxx
index 1fcc05f0e4c463a57ae876817fa92a70cd2ecb39..2d32331a30e5fa6613d443e4e34e5b22345632f8 100644
(file)
--- a/
src/XAO/XAO_IntegerStep.cxx
+++ b/
src/XAO/XAO_IntegerStep.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2013-20
19
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-20
22
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
//
// 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;
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;
{
m_nbElements = nbElements;
m_nbComponents = nbComponents;
@@
-56,8
+56,8
@@
std::vector<int> IntegerStep::getValues()
return result;
}
return result;
}
-std::vector<int> IntegerStep::getElement(
const int&
element)
-throw (XAO_Exception)
+std::vector<int> IntegerStep::getElement(
int
element)
+
{
checkElementIndex(element);
{
checkElementIndex(element);
@@
-65,8
+65,8
@@
throw (XAO_Exception)
return result;
}
return result;
}
-std::vector<int> IntegerStep::getComponent(
const int&
component)
-throw (XAO_Exception)
+std::vector<int> IntegerStep::getComponent(
int
component)
+
{
checkComponentIndex(component);
{
checkComponentIndex(component);
@@
-83,8
+83,8
@@
throw (XAO_Exception)
return result;
}
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);
{
checkElementIndex(element);
checkComponentIndex(component);
@@
-92,14
+92,14
@@
throw (XAO_Exception)
return m_values[element][component];
}
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<int>& values)
{
return XaoUtils::intToString(getValue(element, component));
}
void IntegerStep::setValues(const std::vector<int>& values)
-throw (XAO_Exception)
+
{
checkNbValues(values.size());
{
checkNbValues(values.size());
@@
-112,8
+112,8
@@
throw (XAO_Exception)
}
}
}
}
-void IntegerStep::setElement(
const int&
element, const std::vector<int>& elements)
-throw (XAO_Exception)
+void IntegerStep::setElement(
int
element, const std::vector<int>& elements)
+
{
checkElementIndex(element);
checkNbComponents(elements.size());
{
checkElementIndex(element);
checkNbComponents(elements.size());
@@
-122,8
+122,8
@@
throw (XAO_Exception)
m_values[element][i] = elements[i];
}
m_values[element][i] = elements[i];
}
-void IntegerStep::setComponent(
const int&
component, const std::vector<int>& components)
-throw (XAO_Exception)
+void IntegerStep::setComponent(
int
component, const std::vector<int>& components)
+
{
checkElementIndex(component);
checkNbElements(components.size());
{
checkElementIndex(component);
checkNbElements(components.size());
@@
-132,8
+132,8
@@
throw (XAO_Exception)
m_values[i][component] = components[i];
}
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);
{
checkElementIndex(element);
checkComponentIndex(component);
@@
-141,8
+141,8
@@
throw (XAO_Exception)
m_values[element][component] = value;
}
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));
}
{
setValue(element, component, XaoUtils::stringToInt(value));
}