Salome HOME
Copyright update 2021
[modules/smesh.git] / src / Tools / padder / meshjob / idl / MESHJOB.idl
index c10c8248fc00e46e3938dbfed997f055b1e60c7c..0cf7cfef4e8dbc30c450c4b145409584da92c2b4 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2021  EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,6 +16,7 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 // Authors : Guillaume Boulant (EDF) - 31/01/2011
 
 #ifndef _MESHJOB_IDL_
@@ -32,7 +33,7 @@ module MESHJOB
 {
 
   //
-  // Structure to transmit the parameters requiered for the job to run
+  // Structure to transmit the parameters required for the job to run
   // the executable program on the target resource. See configure
   // service.
   //
@@ -49,7 +50,7 @@ module MESHJOB
   //
 
   // This defines the set of temporary folders used by the jobmanager
-  // when executing a job (may depends on the job).
+  // when executing a job (may depend on the job).
   struct MeshJobPaths
   {
     string local_inputdir;
@@ -61,13 +62,23 @@ module MESHJOB
   enum FileType {MED_CONCRETE, MED_STEELBAR};
 
   // This defines a single parameter for the job initialization (a med file)
-  struct MeshJobParameter
+  struct MeshJobFile
   {
     string file_name;
     FileType file_type;
     string group_name;
   };
   
+  // This defines a set of parameters for the job initialization
+  typedef sequence<MESHJOB::MeshJobFile> MeshJobFileList;
+
+  // This defines a single parameter for the job initialization
+  struct MeshJobParameter
+  {
+    string name;
+    string value;
+  };
+  
   // This defines a set of parameters for the job initialization
   typedef sequence<MESHJOB::MeshJobParameter> MeshJobParameterList;
 
@@ -96,7 +107,9 @@ module MESHJOB
       raises (SALOME::SALOME_Exception);
 
     /*! Initialize a smesh computation job and return the job identifier */
-    long    initialize(in MESHJOB::MeshJobParameterList meshJobParameterList, in string configId)
+    long    initialize(in MESHJOB::MeshJobFileList meshJobFileList,
+                       in MESHJOB::MeshJobParameterList MeshJobParameterList,
+                       in string configId)
       raises (SALOME::SALOME_Exception);
 
     /*! Submit the job execution and return true if submission is OK */