bool aResult = VISU_PipeLine::CheckAvailableMemory(aSize);
MESSAGE("Result_i::IsPossible - CheckAvailableMemory = "<<float(aSize)<<"; aResult = "<<float(aResult));
return aResult;
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
}catch(...){
- INFOS("Unknown exception was accured!");
+ INFOS("Unknown exception was occured!");
}
return 0;
}
int aTimeStamp = aValFieldIter->first;
try{
myInput->GetTimeStampOnMesh(aMeshName,anEntity,aFieldName,aTimeStamp);
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
}catch(...){
- INFOS("Unknown exception was accured!!!");
+ INFOS("Unknown exception was occured!!!");
}
}
}
const string& aGroupName = aGroupMapIter->first;
try{
myInput->GetMeshOnGroup(aMeshName,aGroupName);
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
}catch(...){
- INFOS("Unknown exception was accured!!!");
+ INFOS("Unknown exception was occured!!!");
}
}
//Import families
const string& aFamilyName = aFamilyMapIter->first;
try{
myInput->GetMeshOnEntity(aMeshName,anEntity,aFamilyName);
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
}catch(...){
- INFOS("Unknown exception was accured!!!");
+ INFOS("Unknown exception was occured!!!");
}
}
//Import mesh on entity
try{
myInput->GetMeshOnEntity(aMeshName,anEntity);
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
}catch(...){
- INFOS("Unknown exception was accured!!!");
+ INFOS("Unknown exception was occured!!!");
}
}
}
myIsDone = 1;
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
}catch(...){
- INFOS("Unknown exception was accured!!!");
+ INFOS("Unknown exception was occured!!!");
}
return myIsDone;
}
QString aIsBuild = QAD_CONFIG->getSetting("Visu:BuildResult");
bool isBuildAll = aIsBuild.isEmpty()? 0 : aIsBuild.toInt();
if(isBuildAll) BuildAll();
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
return NULL;
}catch(...){
- INFOS("Unknown exception was accured!!!");
+ INFOS("Unknown exception was occured!!!");
return NULL;
}
aStudyBuilder->CommitCommand();
myInitFileName = myFileInfo.filePath().latin1();
myName = ::GenerateName(myFileInfo.fileName()).latin1();
if(GetSourceId() == eRestoredFile){
- auto_ptr<char> aTmpDir(SALOMEDS_Tool::GetTmpDir());
+ auto_ptr<char> aTmpDir((char*)SALOMEDS_Tool::GetTmpDir().c_str());
static QString aCommand;
aCommand.sprintf("cp %s %s",myFileInfo.absFilePath().latin1(),aTmpDir.get());
if(system(aCommand) == -1){
}
myInput = CreateConvertor(myFileInfo.absFilePath().latin1());
if(!myInput)
- throw std::runtime_error("Create - Cannot create a Convertor for this file!!!");
- return Build();
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ throw std::runtime_error("Create - Cannot create a Convertor for this file!!!"); return Build();
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
}catch(...){
- INFOS("Unknown exception was accured!!!");
+ INFOS("Unknown exception was occured!!!");
}
return NULL;
}
myName = ::GenerateName("aResult").latin1();
VISU::Storable* aStorable = Build(theMedSObject);
return aStorable;
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
}catch(...){
- INFOS("Unknown exception was accured!!!");
+ INFOS("Unknown exception was occured!!!");
}
return NULL;
}
myFileInfo.setFile(aCompDataType.c_str());
myInitFileName = aCompDataType;
myName = ::GenerateName("aResult").latin1();
- VISU::Storable* aStorable = Build();
+ CORBA::String_var anIOR = myStudyDocument->ConvertObjectToIOR(theField);
+ SALOMEDS::SObject_var aFieldSObject = myStudyDocument->FindObjectIOR(anIOR);
+ VISU::Storable* aStorable = Build(aFieldSObject);
return aStorable;
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
}catch(...){
- INFOS("Unknown exception was accured!!!");
+ INFOS("Unknown exception was occured!!!");
}
return NULL;
}
if(aIsBuild.isEmpty()? 0 : aIsBuild.toInt())
BuildAll();
return this;
- }catch(std::runtime_error& exc){
- INFOS("Follow exception was accured :\n"<<exc.what());
+ }catch(std::exception& exc){
+ INFOS("Follow exception was occured :\n"<<exc.what());
}catch(...){
- INFOS("Unknown exception was accured!!!");
+ INFOS("Unknown exception was occured!!!");
}
return NULL;
}