${CMAKE_CURRENT_SOURCE_DIR}/../HDFPersist
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
+ ${CMAKE_CURRENT_SOURCE_DIR}/../KernelHelpers
${CMAKE_CURRENT_SOURCE_DIR}/../Utils
${CMAKE_CURRENT_SOURCE_DIR}/../DF
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMEDSImpl
SALOMELocalTrace
SALOMEBasics
SalomeHDFPersist
+ SalomeKernelHelpers
DF
SalomeDSImpl
SalomeGenericObj
// Module : SALOME
//
#include "utilities.h"
+#include <sstream>
#include "SALOMEDS_Study_i.hxx"
#include "SALOMEDS_StudyManager_i.hxx"
#include "SALOMEDS_UseCaseIterator_i.hxx"
#include "DF_Attribute.hxx"
#include "Basics_Utils.hxx"
+#include "SALOME_KernelServices.hxx"
#ifdef WIN32
#include <process.h>
//Does not need any more this iterator
itcomponent->UnRegister();
+ // Notify GUI that study is closed
+ SALOME::Session_var aSession = KERNEL::getSalomeSession();
+ if ( !CORBA::is_nil(aSession) ) {
+ long studyId = aSession->GetActiveStudyId();
+ std::stringstream ss;
+ ss << "studyClosed:" << studyId;
+ std::string str = ss.str();
+ aSession->emitMessage(str.c_str());
+ }
_impl->Close();
}