Salome HOME
updated copyright message
[modules/shaper.git] / src / XAO / XAO_BooleanStep.cxx
index 6f4962bd8c5f589051b52f231eadec2254719a9d..a42131709ce36cfb0587a01fd21ee6a3899ba362 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-2023  CEA, EDF
 //
 // 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;
 
-BooleanStep::BooleanStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents)
+BooleanStep::BooleanStep(int step, int stamp, int nbElements, int nbComponents)
 {
     m_nbElements = nbElements;
     m_nbComponents = nbComponents;
@@ -56,8 +56,7 @@ std::vector<bool> BooleanStep::getValues()
     return result;
 }
 
-std::vector<bool> BooleanStep::getElement(const int& element)
-throw (XAO_Exception)
+std::vector<bool> BooleanStep::getElement(int element)
 {
     checkElementIndex(element);
 
@@ -65,8 +64,7 @@ throw (XAO_Exception)
     return result;
 }
 
-std::vector<bool> BooleanStep::getComponent(const int& component)
-throw (XAO_Exception)
+std::vector<bool> BooleanStep::getComponent(int component)
 {
     checkComponentIndex(component);
 
@@ -83,8 +81,7 @@ throw (XAO_Exception)
     return result;
 }
 
-const bool BooleanStep::getValue(const int& element, const int& component)
-throw (XAO_Exception)
+bool BooleanStep::getValue(int element, int component)
 {
     checkElementIndex(element);
     checkComponentIndex(component);
@@ -92,14 +89,12 @@ throw (XAO_Exception)
     return m_values[element][component];
 }
 
-const std::string BooleanStep::getStringValue(const int& element, const int& component)
-throw (XAO_Exception)
+const std::string BooleanStep::getStringValue(int element, int component)
 {
     return XaoUtils::booleanToString(getValue(element, component));
 }
 
 void BooleanStep::setValues(const std::vector<bool>& values)
-throw (XAO_Exception)
 {
     checkNbValues((int)values.size());
 
@@ -112,8 +107,7 @@ throw (XAO_Exception)
     }
 }
 
-void BooleanStep::setElement(const int& element, const std::vector<bool>& elements)
-throw (XAO_Exception)
+void BooleanStep::setElement(int element, const std::vector<bool>& elements)
 {
     checkElementIndex(element);
     checkNbComponents(elements.size());
@@ -122,8 +116,7 @@ throw (XAO_Exception)
         m_values[element][i] = elements[i];
 }
 
-void BooleanStep::setComponent(const int& component, const std::vector<bool>& components)
-throw (XAO_Exception)
+void BooleanStep::setComponent(int component, const std::vector<bool>& components)
 {
     checkComponentIndex(component);
     checkNbElements(components.size());
@@ -132,8 +125,7 @@ throw (XAO_Exception)
         m_values[i][component] = components[i];
 }
 
-void BooleanStep::setValue(const int& element, const int& component, const bool& value)
-throw (XAO_Exception)
+void BooleanStep::setValue(int element, int component, bool value)
 {
     checkElementIndex(element);
     checkComponentIndex(component);
@@ -141,8 +133,7 @@ throw (XAO_Exception)
     m_values[element][component] = value;
 }
 
-void BooleanStep::setStringValue(const int& element, const int& component, const std::string& value)
-throw (XAO_Exception)
+void BooleanStep::setStringValue(int element, int component, const std::string& value)
 {
     setValue(element, component, XaoUtils::stringToBoolean(value));
 }