#include "SUIT_ResourceMgr.h"
-#include "SALOME_Event.hxx"
-
#include "SALOMEDS_Tool.hxx"
#include "HDFascii.hxx"
CORBA::Object_var anObject = VISU::SObjectToObject(aFather);
if (!CORBA::is_nil(anObject)) {
aResult = VISU::Result::_narrow(anObject);
- if(!aResult->_is_nil()) return aResult;
+ if (!aResult->_is_nil()) return aResult;
}
aFather = aFather->GetFather();
aFatherID = aFather->GetID();
string GetComponentDataType (SALOMEDS::SObject_ptr theSObject)
{
- SALOMEDS::Study_var aStudy = theSObject->GetStudy();
SALOMEDS::SComponent_var aCompRefSObj = theSObject->GetFatherComponent();
CORBA::String_var aDataType = aCompRefSObj->ComponentDataType();
return aDataType.in();
throw std::runtime_error("Build >> Value of entity is incorrect!");
}
aEntity2EntryMap[anEntity] = CreateAttributes
- (myStudyDocument,aSubMeshesEntry.c_str(),aRefFatherEntry.c_str(),
- "",anEntityName.c_str(),"",aComment.latin1(),true);
+ (myStudyDocument, aSubMeshesEntry.c_str(), aRefFatherEntry.c_str(),
+ "", anEntityName.c_str(), "", aComment.latin1(), true);
const VISU::PMeshOnEntity aMeshOnEntity = aMeshOnEntityMapIter->second;
const VISU::TFamilyMap& aFamilyMap = aMeshOnEntity->myFamilyMap;
VISU::TFamilyMap::const_iterator aFamilyMapIter = aFamilyMap.begin();
SALOMEDS::StudyBuilder_var aStudyBuilder = myStudyDocument->NewBuilder();
SALOMEDS::Driver_var aDriver = SALOMEDS::Driver::_narrow(aEngComp);
aStudyBuilder->LoadWith(aCompRefSObj, aDriver);
- if (strcmp(aDataType,"MED") == 0)
+ if (strcmp(aDataType, "MED") == 0)
myInput = CreateMEDConvertor(aTargetRefSObj);
else
throw std::runtime_error("GetInput - There is no convertor for the aDataType !!!");
aCmnt->SetValue(aComment.latin1());
}
bool isBuildAll = VISU::GetResourceMgr()->booleanValue("VISU", "full_med_loading", false);
- if (isBuildAll) BuildAll();
+ if (isBuildAll)
+ BuildAll();
return this;
} catch(std::exception& exc) {
INFOS("Follow exception was occured :\n"<<exc.what());
aSourceId = eRestoredComponent;
VISU::Result_i* pResult = new VISU::Result_i(aStudy,aSourceId,aCreationId);
- if(pResult == NULL)
+ if (pResult == NULL)
return NULL;
return pResult->Restore(theSObject,theMap,thePrefix);
return FindEntryWithComment(myStudyDocument,GetEntry().c_str(),theComment.c_str());
}
-VISU::Result_i::~Result_i() {
+VISU::Result_i::~Result_i()
+{
MESSAGE("Result_i::~Result_i() - this = "<<this);
- if(mySourceId == eRestoredFile){
+ if (mySourceId == eRestoredFile) {
static QString aCommand;
aCommand.sprintf("rm %s",myFileInfo.filePath().latin1());
MESSAGE("Result_i::~Result_i - system("<<aCommand<<") = "<<system(aCommand));