]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XAO/XAO_GeometricElement.cxx
Salome HOME
updated copyright message
[modules/shaper.git] / src / XAO / XAO_GeometricElement.cxx
index 0c92c40eab21970104f863303dc352402185eb9a..d119f184679e36aa1f9c353f7aa4fbb9de0122a9 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
@@ -40,7 +40,7 @@ GeometricElement::~GeometricElement()
 {
 }
 
-const bool GeometricElement::hasName()
+bool GeometricElement::hasName()
 {
     return !m_name.empty();
 }
@@ -50,12 +50,12 @@ GeometricElementList::GeometricElementList()
     setSize(0);
 }
 
-GeometricElementList::GeometricElementList(const int& count)
+GeometricElementList::GeometricElementList(int count)
 {
     setSize(count);
 }
 
-void GeometricElementList::setSize(const int& nb)
+void GeometricElementList::setSize(int nb)
 {
     m_count = nb;
     m_elements.clear();
@@ -65,8 +65,7 @@ void GeometricElementList::setSize(const int& nb)
     }
 }
 
-void GeometricElementList::checkElementIndex(const int& index) const
-throw (XAO_Exception)
+void GeometricElementList::checkElementIndex(int index) const
 {
     if (m_count >= 0 && index < m_count)
         return;
@@ -75,51 +74,44 @@ throw (XAO_Exception)
                                      << m_count-1 << "]: " << index);
 }
 
-void GeometricElementList::setElement(const int& index, const std::string& name, const std::string& reference)
-throw (XAO_Exception)
+void GeometricElementList::setElement(int index, const std::string& name, const std::string& reference)
 {
     checkElementIndex(index);
     m_elements[index].setName(name);
     m_elements[index].setReference(reference);
 }
 
-const std::string GeometricElementList::getName(const int& index)
-throw (XAO_Exception)
+const std::string GeometricElementList::getName(int index)
 {
     checkElementIndex(index);
     return m_elements[index].getName();
 }
 
-void GeometricElementList::setName(const int& index, const std::string& name)
-throw (XAO_Exception)
+void GeometricElementList::setName(int index, const std::string& name)
 {
     checkElementIndex(index);
     m_elements[index].setName(name);
 }
 
-const bool GeometricElementList::hasName(const int& index)
-throw (XAO_Exception)
+bool GeometricElementList::hasName(int index)
 {
     checkElementIndex(index);
     return m_elements[index].hasName();
 }
 
-const std::string GeometricElementList::getReference(const int& index)
-throw (XAO_Exception)
+const std::string GeometricElementList::getReference(int index)
 {
     checkElementIndex(index);
     return m_elements[index].getReference();
 }
 
-void GeometricElementList::setReference(const int& index, const std::string& name)
-throw (XAO_Exception)
+void GeometricElementList::setReference(int index, const std::string& name)
 {
     checkElementIndex(index);
     m_elements[index].setReference(name);
 }
 
-const int GeometricElementList::getIndexByReference(const std::string& ref)
-throw (XAO_Exception)
+int GeometricElementList::getIndexByReference(const std::string& ref)
 {
     for (int index = 0; index < m_count; ++index)
     {