From 779ad2bd773d7eba7f6eb644fb9e7c77faa86a14 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 10 May 2024 13:33:07 +0200 Subject: [PATCH] [EDF30062] : new activate-custom-overrides option in driver --- idl/SALOME_ContainerManager.idl | 2 ++ src/Container/SALOME_ContainerManager.cxx | 5 +++++ src/Container/SALOME_ContainerManager.hxx | 6 +++--- 3 files changed, 10 insertions(+), 3 deletions(-) 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 -- 2.39.2