daq/RunInfo.h

00001 #ifndef _RUNINFO_H_
00002 #define _RUNINFO_H_
00003 
00004 #include <iostream>
00005 #include <sstream>
00006 #include "../db/DBConnection.h"
00007 #include "Daq.h"
00008 
00009 using namespace std;
00010 
00011 
00015 class RunInfo{
00016 
00017  private :
00018 
00019   int number;
00020   int status;
00021   int type;
00022   string startDate;
00023   string stopDate;
00024   int daqID;
00025   string comment;
00026 
00027   RunInfo();
00028 
00029  public :
00030 
00036   RunInfo(int t, string d) throw (ILCException::Exception);
00041   void setStatus(int s) throw (ILCException::Exception);
00045   void start() throw (ILCException::Exception);
00049   void stop() throw (ILCException::Exception);
00050   void setDescription(string d) throw (ILCException::Exception);
00051 
00052   int getRunNumber();
00053   int getStatus();
00054   int getType();
00055   string getStartTime();
00056   string getStopTime();
00061   Daq* getDaq() throw (ILCException::Exception);
00062   string getDescription();
00063 
00069   static RunInfo* getRunInfo(int n) throw (ILCException::Exception);
00070 
00074   static string getStatusDefinition(int val) throw (ILCException::Exception);
00075 
00079   static string getTypeDefinition(int val) throw (ILCException::Exception);
00080 
00086   static vector<RunInfo*> getRunsFromDaqName(string dname) throw (ILCException::Exception);
00087 
00088 };
00089 #endif

Generated on Tue Feb 28 15:35:34 2012 for ILCConfigurationDB by  doxygen 1.4.7