Salome HOME
Fix of too long line problem.
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_ImportFeature.cpp
index b8b864acc2d034e259d31729d56ee1932a88bd0f..e6f2e8f3e28cdebdf29df214eb86a4a729e590b1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2019  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
 //
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #include <ExchangePlugin_ImportFeature.h>
@@ -204,7 +203,7 @@ void ExchangePlugin_ImportFeature::importXAO(const std::string& theFileName)
       // complex conversion of element index to reference id
       int anElementID = aXaoGroup->get(anElementIndex);
       std::string aReferenceString =
-          aXaoGeometry->getElementReference(aXaoGroup->getDimension(), anElementID);
+        aXaoGeometry->getElementReference(aXaoGroup->getDimension(), anElementID);
       int aReferenceID = XAO::XaoUtils::stringToInt(aReferenceString);
 
       aSelectionList->value(anElementIndex)->setId(aReferenceID);
@@ -332,11 +331,13 @@ void ExchangePlugin_ImportFeature::importXAO(const std::string& theFileName)
   ModelAPI_EventCreator::get()->sendReordered(
     std::dynamic_pointer_cast<ModelAPI_Feature>(aRefListOfGroups->owner()));
 
+// LCOV_EXCL_START
   } catch (XAO::XAO_Exception& e) {
     std::string anError = e.what();
     setError("An error occurred while importing " + theFileName + ": " + anError);
     return;
   }
+// LCOV_EXCL_STOP
 }
 
 //============================================================================
@@ -351,6 +352,7 @@ std::shared_ptr<ModelAPI_Feature> ExchangePlugin_ImportFeature::addFeature(
   return aNew;
 }
 
+// LCOV_EXCL_START
 void ExchangePlugin_ImportFeature::removeFeature(
     std::shared_ptr<ModelAPI_Feature> theFeature)
 {
@@ -359,6 +361,7 @@ void ExchangePlugin_ImportFeature::removeFeature(
   AttributeRefListPtr aList = reflist(FEATURES_ID());
   aList->remove(theFeature);
 }
+// LCOV_EXCL_STOP
 
 int ExchangePlugin_ImportFeature::numberOfSubs(bool forTree) const
 {
@@ -373,6 +376,7 @@ std::shared_ptr<ModelAPI_Feature> ExchangePlugin_ImportFeature::subFeature(
   return aRes;
 }
 
+// LCOV_EXCL_START
 int ExchangePlugin_ImportFeature::subFeatureId(const int theIndex) const
 {
   std::shared_ptr<ModelAPI_AttributeRefList> aRefList = std::dynamic_pointer_cast<
@@ -390,6 +394,7 @@ int ExchangePlugin_ImportFeature::subFeatureId(const int theIndex) const
   }
   return aResultIndex;
 }
+// LCOV_EXCL_STOP
 
 bool ExchangePlugin_ImportFeature::isSub(ObjectPtr theObject) const
 {