X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FExchangePlugin%2FExchangePlugin_ImportFeature.cpp;h=e6f2e8f3e28cdebdf29df214eb86a4a729e590b1;hb=5afcc18216ad228eafcaf632c5008d1aebd3122e;hp=b8b864acc2d034e259d31729d56ee1932a88bd0f;hpb=d4b0a5cb916f4eccf4a0bce02e43a54c7a67cb93;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp index b8b864acc..e6f2e8f3e 100644 --- a/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp @@ -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 @@ -12,10 +12,9 @@ // // 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 +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include @@ -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(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 ExchangePlugin_ImportFeature::addFeature( return aNew; } +// LCOV_EXCL_START void ExchangePlugin_ImportFeature::removeFeature( std::shared_ptr 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 ExchangePlugin_ImportFeature::subFeature( return aRes; } +// LCOV_EXCL_START int ExchangePlugin_ImportFeature::subFeatureId(const int theIndex) const { std::shared_ptr 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 {