00001 #ifndef _JOB_H_
00002 #define _JOB_H_
00003
00004 #include <iostream>
00005 #include <sstream>
00006 #include "../db/DBConnection.h"
00007
00008 using namespace std;
00009
00010
00014 class Job{
00015
00016 private :
00017
00018 int id;
00019 int status;
00020 int jobID;
00021 int daqID;
00022 string host;
00023
00024 public :
00025
00026 Job(string h, int jid);
00031 void setStatus(int s);
00035 void setInternalId(int i);
00039 void setDaqId(int d);
00040
00041 int getID();
00042 int getStatus();
00043 string getHost();
00044
00048 void upload() throw (ILCException::Exception);
00049
00053 static string getStatusDefinition(int val) throw (ILCException::Exception);
00054
00055 };
00056 #endif