Salome HOME
Merge class BatchManager_eClient into class BatchManager
[tools/libbatch.git] / src / CCC / Batch_JobInfo_eCCC.cxx
index ff56a352926f070d58a3b47fd7c23c658443dcc0..edc646bc8381eebf8f3e9170f87155a7968269f3 100644 (file)
 
 #include <cstdio>
 #include <iostream>
-#include <fstream>
 #include <sstream>
 
 #include "Batch_Constants.hxx"
 #include "Batch_Parametre.hxx"
 #include "Batch_Environnement.hxx"
-#include "Batch_RunTimeException.hxx"
-#include "Batch_APIInternalFailureException.hxx"
 #include "Batch_JobInfo_eCCC.hxx"
 
 using namespace std;
@@ -48,7 +45,7 @@ namespace Batch {
 
 
   // Constructeurs
-  JobInfo_eCCC::JobInfo_eCCC(int id, string logFile) : JobInfo()
+  JobInfo_eCCC::JobInfo_eCCC(int id, string output) : JobInfo()
   {
     // On remplit les membres _param et _env
     ostringstream oss;
@@ -57,7 +54,7 @@ namespace Batch {
 
     // read status of job in log file
     char line[128];
-    ifstream fp(logFile.c_str(),ios::in);
+    istringstream fp(output);
     fp.getline(line,80,'\n');
     
     string sjobid, username, status;