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
Switch to SSL mode for tests : naive approach
[modules/geom.git]
/
src
/
XAO
/
XAO_StringStep.cxx
diff --git
a/src/XAO/XAO_StringStep.cxx
b/src/XAO/XAO_StringStep.cxx
index 9f0f793a7021ecb0746f7c38cd21a834a770686c..c756e85b9721d4874dd0c573fa5fb7901f0633f5 100644
(file)
--- a/
src/XAO/XAO_StringStep.cxx
+++ b/
src/XAO/XAO_StringStep.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2013-20
15
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-20
21
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
@@
-22,7
+22,7
@@
using namespace XAO;
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;
{
m_nbElements = nbElements;
m_nbComponents = nbComponents;
@@
-55,8
+55,8
@@
std::vector<std::string> StringStep::getValues()
return result;
}
return result;
}
-std::vector<std::string> StringStep::getElement(
const int&
element)
-throw (XAO_Exception)
+std::vector<std::string> StringStep::getElement(
int
element)
+
{
checkElementIndex(element);
{
checkElementIndex(element);
@@
-64,8
+64,8
@@
throw (XAO_Exception)
return result;
}
return result;
}
-std::vector<std::string> StringStep::getComponent(
const int&
component)
-throw (XAO_Exception)
+std::vector<std::string> StringStep::getComponent(
int
component)
+
{
checkComponentIndex(component);
{
checkComponentIndex(component);
@@
-82,8
+82,8
@@
throw (XAO_Exception)
return result;
}
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);
{
checkElementIndex(element);
checkComponentIndex(component);
@@
-91,14
+91,14
@@
throw (XAO_Exception)
return m_values[element][component];
}
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<std::string>& values)
{
return getValue(element, component);
}
void StringStep::setValues(const std::vector<std::string>& values)
-throw (XAO_Exception)
+
{
checkNbValues(values.size());
{
checkNbValues(values.size());
@@
-111,8
+111,8
@@
throw (XAO_Exception)
}
}
}
}
-void StringStep::setElement(
const int&
element, const std::vector<std::string>& elements)
-throw (XAO_Exception)
+void StringStep::setElement(
int
element, const std::vector<std::string>& elements)
+
{
checkElementIndex(element);
checkNbComponents(elements.size());
{
checkElementIndex(element);
checkNbComponents(elements.size());
@@
-121,8
+121,8
@@
throw (XAO_Exception)
m_values[element][i] = elements[i];
}
m_values[element][i] = elements[i];
}
-void StringStep::setComponent(
const int&
component, const std::vector<std::string>& components)
-throw (XAO_Exception)
+void StringStep::setComponent(
int
component, const std::vector<std::string>& components)
+
{
checkElementIndex(component);
checkNbElements(components.size());
{
checkElementIndex(component);
checkNbElements(components.size());
@@
-131,8
+131,8
@@
throw (XAO_Exception)
m_values[i][component] = components[i];
}
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);
{
checkElementIndex(element);
checkComponentIndex(component);
@@
-140,8
+140,8
@@
throw (XAO_Exception)
m_values[element][component] = value;
}
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);
}
{
setValue(element, component, value);
}