From 8108df1d93f4de242830ce16c0c1994d0c67f477 Mon Sep 17 00:00:00 2001 From: ribes Date: Wed, 13 Apr 2011 16:42:38 +0000 Subject: [PATCH] Add specific parameters support to getJobParameters --- src/Launcher/SALOME_Launcher.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Launcher/SALOME_Launcher.cxx b/src/Launcher/SALOME_Launcher.cxx index d16ebcdc0..ec1993e65 100644 --- a/src/Launcher/SALOME_Launcher.cxx +++ b/src/Launcher/SALOME_Launcher.cxx @@ -455,6 +455,22 @@ SALOME_Launcher::getJobParameters(CORBA::Long job_id) job_parameters->resource_required.cpu_clock = resource_params.cpu_clock; job_parameters->resource_required.mem_mb = resource_params.mem_mb; + std::map specific_parameters = job->getSpecificParameters(); + if (!specific_parameters.empty()) + { + job_parameters->specific_parameters.length(specific_parameters.size()); + std::map::const_iterator it_specific; + CORBA::ULong i = 0; + for (it_specific = specific_parameters.begin() ; it_specific != specific_parameters.end(); it_specific++) + { + Engines::Parameter_var new_param = new Engines::Parameter; + new_param->name = CORBA::string_dup((it_specific->first).c_str()); + new_param->value = CORBA::string_dup((it_specific->second).c_str()); + job_parameters->specific_parameters[i] = new_param; + i++; + } + } + return job_parameters._retn(); } -- 2.39.2