From: Anthony Geay Date: Tue, 17 Aug 2021 14:41:06 +0000 (+0200) Subject: WIP X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7c3666411ed7aa12323a62659e573cc8c71e9ff4;p=modules%2Fkernel.git WIP --- diff --git a/src/SALOMESDS/SALOMESDS_DataServerManager.cxx b/src/SALOMESDS/SALOMESDS_DataServerManager.cxx index 55a6c0236..80ba9319e 100644 --- a/src/SALOMESDS/SALOMESDS_DataServerManager.cxx +++ b/src/SALOMESDS/SALOMESDS_DataServerManager.cxx @@ -123,7 +123,7 @@ CORBA::Boolean DataServerManager::isAliveAndKicking(const char *scopeName) } template -typename T::PtrType CreateDataScope(const std::string& scopeName, const std::vector& scopes, SALOME_NamingService_Abstract& ns) +typename T::PtrType CreateDataScope(CORBA::ORB_ptr orb, const std::string& scopeName, const std::vector& scopes, SALOME_NamingService_Abstract& ns) { int isTransactionInt(T::IsTransaction); if(std::find(scopes.begin(),scopes.end(),scopeName)!=scopes.end()) @@ -167,12 +167,12 @@ typename T::PtrType CreateDataScope(const std::string& scopeName, const std::vec } template -typename T::PtrType GiveADataScopeCalled(const std::string& scopeName, const std::vector& scopes, SALOME_NamingService_Abstract& ns, CORBA::Boolean& isCreated) +typename T::PtrType GiveADataScopeCalled(CORBA::ORB_ptr orb, const std::string& scopeName, const std::vector& scopes, SALOME_NamingService_Abstract& ns, CORBA::Boolean& isCreated) { if(std::find(scopes.begin(),scopes.end(),scopeName)==scopes.end()) { isCreated=true; - return CreateDataScope(scopeName,scopes,ns); + return CreateDataScope(orb,scopeName,scopes,ns); } else { @@ -195,7 +195,7 @@ typename T::PtrType GiveADataScopeCalled(const std::string& scopeName, const std std::string fullScopeName(SALOMESDS::DataServerManager::CreateAbsNameInNSFromScopeName(scopeName)); ns.Destroy_Name(fullScopeName.c_str()); isCreated=true; - return CreateDataScope(scopeName,scopes,ns); + return CreateDataScope(orb,scopeName,scopes,ns); } } } @@ -226,22 +226,22 @@ public: SALOME::DataScopeServer_ptr DataServerManager::createDataScope(const char *scopeName) { - return CreateDataScope(scopeName,listOfScopesCpp(),*_ns); + return CreateDataScope(_orb,scopeName,listOfScopesCpp(),*_ns); } SALOME::DataScopeServer_ptr DataServerManager::giveADataScopeCalled(const char *scopeName, CORBA::Boolean& isCreated) { - return GiveADataScopeCalled(scopeName,listOfScopesCpp(),*_ns,isCreated); + return GiveADataScopeCalled(_orb,scopeName,listOfScopesCpp(),*_ns,isCreated); } SALOME::DataScopeServerTransaction_ptr DataServerManager::createDataScopeTransaction(const char *scopeName) { - return CreateDataScope(scopeName,listOfScopesCpp(),*_ns); + return CreateDataScope(_orb,scopeName,listOfScopesCpp(),*_ns); } SALOME::DataScopeServerTransaction_ptr DataServerManager::giveADataScopeTransactionCalled(const char *scopeName, CORBA::Boolean& isCreated) { - return GiveADataScopeCalled(scopeName,listOfScopesCpp(),*_ns,isCreated); + return GiveADataScopeCalled(_orb,scopeName,listOfScopesCpp(),*_ns,isCreated); } SALOME::DataScopeServerBase_ptr DataServerManager::retriveDataScope(const char *scopeName)