]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
A missing method giveADataScopeTransactionCalled 4 RequestSwitcherDSM
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 15 Jan 2018 12:34:31 +0000 (13:34 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Tue, 23 Jan 2018 15:51:45 +0000 (16:51 +0100)
idl/SALOME_SDS.idl
src/SALOMESDS/SALOMESDS_DataServerManager.cxx
src/SALOMESDS/SALOMESDS_DataServerManager.hxx

index 4330f2fb757a0d9ab7ff0bef6522041eb9d58cbf..1b28d56105cc49d2abef3bd74b8e38e1d1696e8c 100644 (file)
@@ -85,9 +85,12 @@ module SALOME
     void fetchAndGetAccessOfVar(in string varName, out string access, out ByteVec data) raises (SALOME::SALOME_Exception);
   };
 
+  interface DataScopeServerTransaction;
+  
   interface RequestSwitcherDSM : RequestSwitcherBase
   {
     StringVec listScopes();
+    DataScopeServerTransaction giveADataScopeTransactionCalled(in string scopeName, out boolean isCreated) raises (SALOME::SALOME_Exception);
   };
 
   interface DataScopeServerBase
index 5c93fb111f35ccf508489978683620f9c376cb77..9266e17f6ad52bda3e7b38b6d9825430cd39b0f8 100644 (file)
@@ -38,6 +38,11 @@ SALOME::StringVec *RequestSwitcherDSM::listScopes()
   return _dsm->listScopes();
 }
 
+SALOME::DataScopeServerTransaction_ptr RequestSwitcherDSM::giveADataScopeTransactionCalled(const char *scopeName, CORBA::Boolean& isCreated)
+{
+  return _dsm->giveADataScopeTransactionCalled(scopeName,isCreated);
+}
+
 DataServerManager::DataServerManager(int argc, char *argv[], CORBA::ORB_ptr orb, PortableServer::POA_ptr poa):_orb(CORBA::ORB::_duplicate(orb))
 {
   DataScopeServer *dftScope(new DataScopeServer(orb,SALOME::DataScopeKiller::_nil(),DFT_SCOPE_NAME_IN_NS));//_remove_ref will be call by DataScopeServer::shutdownIfNotHostedByDSM
index e8ffa1edefd59ce5e93673ad73028942b32b0046..835a6e882f4546cc833b53acac4aa87382e5b310 100644 (file)
@@ -43,6 +43,7 @@ namespace SALOMESDS
   public:
     RequestSwitcherDSM(CORBA::ORB_ptr orb, DataServerManager *dsm):RequestSwitcherBase(orb),_dsm(dsm) { }
     SALOME::StringVec *listScopes();
+    SALOME::DataScopeServerTransaction_ptr giveADataScopeTransactionCalled(const char *scopeName, CORBA::Boolean& isCreated);
   private:
     DataServerManager *_dsm;
   };