From: jfa Date: Fri, 30 Nov 2007 08:35:02 +0000 (+0000) Subject: NPAL18078: dependance on CASCADE in Salome. X-Git-Tag: mergefrom_MERGE_MULTIPR_EVOLUTION_07-Dec-07~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ec4b5277c8859b6e209eae4b03a879150908e1c5;p=modules%2Fvisu.git NPAL18078: dependance on CASCADE in Salome. --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 229c42ef..882a8213 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -43,8 +43,6 @@ #ifdef NO_CAS_CATCH #include -#else -#include "CASCatch.hxx" #endif #include @@ -1671,61 +1669,46 @@ VISU_MedConvertor INITMSG(MYDEBUG,"- iTimeStamp = "<GetPTimeStampInfo(aFieldInfo, - aMEntity, - aGeom2Size, - iTimeStamp); - - MED::PTimeStampValueBase aTimeStampValue = - myMed->GetPTimeStampValue(aTimeStampInfo, - aMKey2Profile, - aKey2Gauss); - - const MED::TGeom2Gauss& aGeom2Gauss = aTimeStampInfo->GetGeom2Gauss(); - - if(aFieldInfo->GetType() == MED::eFLOAT64) - BuildTimeStampMinMax(CastToFloatTimeStampValue(aTimeStampValue), - aGeom2Gauss, - aMinMaxArr, - aNbComp, - aNbComp2); - else - BuildTimeStampMinMax(CastToIntTimeStampValue(aTimeStampValue), - aGeom2Gauss, - aMinMaxArr, - aNbComp, - aNbComp2); - + MED::PTimeStampInfo aTimeStampInfo = + myMed->GetPTimeStampInfo(aFieldInfo, + aMEntity, + aGeom2Size, + iTimeStamp); + + MED::PTimeStampValueBase aTimeStampValue = + myMed->GetPTimeStampValue(aTimeStampInfo, + aMKey2Profile, + aKey2Gauss); + + const MED::TGeom2Gauss& aGeom2Gauss = aTimeStampInfo->GetGeom2Gauss(); + + if(aFieldInfo->GetType() == MED::eFLOAT64) + BuildTimeStampMinMax(CastToFloatTimeStampValue(aTimeStampValue), + aGeom2Gauss, + aMinMaxArr, + aNbComp, + aNbComp2); + else + BuildTimeStampMinMax(CastToIntTimeStampValue(aTimeStampValue), + aGeom2Gauss, + aMinMaxArr, + aNbComp, + aNbComp2); + #ifndef _DEXCEPT_ -#ifdef NO_CAS_CATCH - }catch(Standard_Failure){ - Handle(Standard_Failure) aFail = Standard_Failure::Caught(); - MSG(MYDEBUG,"Follow signal was occured in:\n"<GetMessageString()); - }catch(std::exception& exc){ - MSG(MYDEBUG,"Follow exception was occured in:\n"<GetMessageString()); + }catch(std::exception& exc){ + MSG(MYDEBUG,"Follow exception was occured in:\n"< -#else -#include "CASCatch.hxx" #endif #ifdef _DEBUG_ @@ -59,42 +57,27 @@ namespace VISU CORBA::Long theIteration) { #ifndef _DEXCEPT_ -#ifdef NO_CAS_CATCH try{ +#ifdef NO_CAS_CATCH OCC_CATCH_SIGNALS; -#else - CASCatch_TRY{ - try{ #endif #endif - theColoredPrs3d->SetCResult(theResult); - theColoredPrs3d->SetMeshName(theMeshName.c_str()); - theColoredPrs3d->SetEntity(theEntity); - theColoredPrs3d->SetFieldName(theFieldName.c_str()); - theColoredPrs3d->SetTimeStampNumber(theIteration); - if(theColoredPrs3d->Apply(false)) - return true; + theColoredPrs3d->SetCResult(theResult); + theColoredPrs3d->SetMeshName(theMeshName.c_str()); + theColoredPrs3d->SetEntity(theEntity); + theColoredPrs3d->SetFieldName(theFieldName.c_str()); + theColoredPrs3d->SetTimeStampNumber(theIteration); + if(theColoredPrs3d->Apply(false)) + return true; #ifndef _DEXCEPT_ -#ifdef NO_CAS_CATCH - }catch(Standard_Failure) { - Handle(Standard_Failure) aFail = Standard_Failure::Caught(); - INFOS("Follow signal was occured :\n"<GetMessageString()); - }catch(std::exception& exc){ - INFOS("Follow exception was occured :\n"<GetMessageString()); + }catch(std::exception& exc){ + INFOS("Follow exception was occured :\n"< -#else -#include "CASCatch.hxx" #endif @@ -401,45 +398,30 @@ namespace aPresent->SetEntity(anEntity); aPresent->SetFieldName(aFieldName.latin1()); aPresent->SetTimeStampNumber(aTimeStampId); -#ifdef NO_CAS_CATCH try{ +#ifdef NO_CAS_CATCH OCC_CATCH_SIGNALS; -#else - CASCatch_TRY{ - try{ #endif - if(aPresent->Apply(false)){ - /* + if(aPresent->Apply(false)){ + /* if(isSequenceDefined) { theData.myPrs[aSequenceId] = aPresent; aFrameId++; } else - */ - theData.myPrs[aFrameId++] = aPresent; - anIsCreated = true; - } -#ifdef NO_CAS_CATCH - }catch(Standard_Failure) { - Handle(Standard_Failure) aFail = Standard_Failure::Caught(); - INFOS("Follow signal was occured :\n"<GetMessageString()); - }catch(std::exception& exc){ - INFOS("Follow exception was occured :\n"<GetMessageString()); + }catch(std::exception& exc){ + INFOS("Follow exception was occured :\n"<_remove_ref(); }