]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[EDF30062] : new activate-custom-overrides option in driver agy/30062
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 10 May 2024 11:33:07 +0000 (13:33 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 10 May 2024 11:33:07 +0000 (13:33 +0200)
idl/SALOME_ContainerManager.idl
src/Container/SALOME_ContainerManager.cxx
src/Container/SALOME_ContainerManager.hxx

index 199ee7560b08d3da401b15bb96e9aebbfb420103..32d9c6676ad412ad67bfd49d09a0f7c94710dd33 100644 (file)
@@ -113,6 +113,8 @@ interface ContainerManager
   void SetBigObjOnDiskDirectory(in string directory);
 
   void SetCodeOnContainerStartUp(in string code);
+
+  string GetCodeOnContainerStartUp();
 } ;
 
 };
index 5b3c04986238951e4102e155752579e1e9ecdacd..be55b1bf36d3108a990991905938c5b1e320a419 100644 (file)
@@ -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:
index 2584f70bacb6374a30d29e2221cbc7fa50655bc9..6119ec393ac3299f073a9b2211a11ea8b7d4ace8 100644 (file)
@@ -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