Salome HOME
Add preprocess feature.
[tools/libbatch.git] / src / Core / BatchManager.hxx
index 7d78f9c35e439ad03d68de8134e35d550979cf71..9bc9dddf780cc3cbd685c7eeefcdb0fd2aea7873 100644 (file)
@@ -94,7 +94,15 @@ namespace Batch {
     MpiImpl *_mpiImpl; // Mpi implementation to launch executable in batch script
 
     MpiImpl* FactoryMpiImpl(std::string mpiImpl);
-    void exportInputFiles(const Job & job);
+    virtual void exportInputFiles(const Job & job);
+    
+    // Preprocessing done on the frontal using "PREPROCESS" parameter as a script.
+    // May throw exceptions in case of failure.
+    virtual void preprocess(const Batch::Job & job);
+    
+    // Submit to batch manager, but we suppose input files are already copied
+    // and preprocess finished without error
+    virtual const Batch::JobId runJob(const Batch::Job & job);
 
   private: