Daq Class Reference

#include <Daq.h>

List of all members.

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 DaqgetDaq (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)


Detailed Description

Informations about the DAQ system


Member Function Documentation

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)

Parameters:
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

Returns:
A vector containing pointers on job objects (This is not a copy, do not delete them!).

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

Returns:
The XML listing of the configuration

void Daq::setHost ( string  h  ) 

Set the name of the host running the DAQ

Parameters:
h The name of the host

void Daq::setStatus ( int  s  ) 

Change the status of the DAQ

Parameters:
s The new status : 0 CREATED, 1 DESTROY

void Daq::setXML ( string  fileName  )  throw (ILCException::Exception)

Set the XML content of the configuration

Parameters:
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.


The documentation for this class was generated from the following files:
Generated on Tue Feb 28 15:35:34 2012 for ILCConfigurationDB by  doxygen 1.4.7