From: Anthony Geay Date: Fri, 10 May 2024 11:33:07 +0000 (+0200) Subject: [EDF30062] : new activate-custom-overrides option in driver X-Git-Tag: emc2p_2.0.0-rc2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fagy%2F30062;p=modules%2Fkernel.git [EDF30062] : new activate-custom-overrides option in driver --- diff --git a/idl/SALOME_ContainerManager.idl b/idl/SALOME_ContainerManager.idl index 199ee7560..32d9c6676 100644 --- a/idl/SALOME_ContainerManager.idl +++ b/idl/SALOME_ContainerManager.idl @@ -113,6 +113,8 @@ interface ContainerManager void SetBigObjOnDiskDirectory(in string directory); void SetCodeOnContainerStartUp(in string code); + + string GetCodeOnContainerStartUp(); } ; }; diff --git a/src/Container/SALOME_ContainerManager.cxx b/src/Container/SALOME_ContainerManager.cxx index 5b3c04986..be55b1bf3 100644 --- a/src/Container/SALOME_ContainerManager.cxx +++ b/src/Container/SALOME_ContainerManager.cxx @@ -369,6 +369,11 @@ void SALOME_ContainerManager::SetCodeOnContainerStartUp(const char *code) _code_to_exe_on_startup = code; } +char *SALOME_ContainerManager::GetCodeOnContainerStartUp() +{ + return CORBA::string_dup( _code_to_exe_on_startup.c_str() ); +} + //============================================================================= //! Give a suitable Container given constraints /*! CORBA Method: diff --git a/src/Container/SALOME_ContainerManager.hxx b/src/Container/SALOME_ContainerManager.hxx index 2584f70ba..6119ec393 100644 --- a/src/Container/SALOME_ContainerManager.hxx +++ b/src/Container/SALOME_ContainerManager.hxx @@ -20,8 +20,7 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -#ifndef __SALOME_CONTAINERMANAGER_HXX__ -#define __SALOME_CONTAINERMANAGER_HXX__ +#pragma once #include "SALOME_Container.hxx" @@ -61,6 +60,8 @@ public: void SetCodeOnContainerStartUp(const char *code) override; + char *GetCodeOnContainerStartUp() override; + // C++ Methods void Shutdown(); @@ -234,4 +235,3 @@ private: int _delta_time_measure_in_ms; std::string _code_to_exe_on_startup; }; -#endif