Salome HOME
Updated copyright comment
[modules/kernel.git] / src / Launcher / Launcher_Job_SALOME.hxx
index 16a9fe4da7e7bf17cdf4a69632c78923eb35191b..93e6c9df6a9d4005a540d48a5e1d866666c74821 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2009-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2009-2024  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -24,6 +24,7 @@
 
 #include "Launcher_Job.hxx"
 #include "Launcher.hxx"
+#include "Launcher_Utils.hxx"
 
 #ifdef WITH_LIBBATCH
 #include <libbatch/Job.hxx>
@@ -33,10 +34,9 @@ namespace Launcher
 {
   class LAUNCHER_EXPORT Job_SALOME : virtual public Launcher::Job
   {
-    protected:
-      virtual ~Job_SALOME();
     public:
-      Job_SALOME();
+      Job_SALOME(bool activateSession=true);
+      virtual ~Job_SALOME();
 
       virtual void setResourceDefinition(const ParserResourcesType & resource_definition);
       virtual void update_job();
@@ -46,6 +46,8 @@ namespace Launcher
       std::string buildSalomeScript(Batch::Parametre params);
       virtual void addJobTypeSpecificScript(std::ofstream & launch_script_stream) = 0;
 #endif
+  private:
+      bool _activateSession;
   };
 }