#include <Daq.h>
Public Member Functions | |
Daq (string n) | |
void | setConfigName (string s) |
void | setStatus (int s) |
void | setHost (string h) |
void | setXML (string fileName) throw (ILCException::Exception) |
void | setComment (string c) |
string | getName () |
string | getTime () |
string | getConfigName () |
int | getStatus () |
string | getHost () |
string | getXML () |
string | getComment () |
void | uploadToDatabase () throw (ILCException::Exception) |
void | addJob (Job *j) |
vector< Job * > | getJobs () |
Static Public Member Functions | |
static Daq * | getDaq (string n) throw (ILCException::Exception) |
static string | getNameFromId (int i) throw (ILCException::Exception) |
static string | getStatusDefinition (int val) throw (ILCException::Exception) |
static vector< string > | getListOfDaqNames () throw (ILCException::Exception) |
void Daq::addJob | ( | Job * | j | ) |
Add a job to the DAQ jobs list. The job will be deleted along with the Daq object (you should not do it yourself)
j | The job to add |
Daq * Daq::getDaq | ( | string | n | ) | throw (ILCException::Exception) [static] |
Download an existing DAQ from the database. You have to delete the object after usage!
vector< Job * > Daq::getJobs | ( | ) |
Get the list of jobs associated to this DAQ
vector< string > Daq::getListOfDaqNames | ( | ) | throw (ILCException::Exception) [static] |
Get the names of existing DAQ
string Daq::getStatusDefinition | ( | int | val | ) | throw (ILCException::Exception) [static] |
Get the definition of a daq status code
string Daq::getXML | ( | ) |
Get the XML configuration
void Daq::setHost | ( | string | h | ) |
Set the name of the host running the DAQ
h | The name of the host |
void Daq::setStatus | ( | int | s | ) |
Change the status of the DAQ
s | The new status : 0 CREATED, 1 DESTROY |
void Daq::setXML | ( | string | fileName | ) | throw (ILCException::Exception) |
Set the XML content of the configuration
fileName | The name of the XML file containing the configuration |
void Daq::uploadToDatabase | ( | ) | throw (ILCException::Exception) |
Send the current object to the database. If the object is already in the database, it is updated with the new values.