#include <Setup.h>
Public Member Functions | |
Setup (string n) | |
Setup (Setup &s) | |
void | addState (State *s) |
vector< State * > | getStates () |
string | getName () |
void | lock () |
bool | isLocked () |
void | upload () throw (ILCException::Exception) |
void | recursiveUpload () |
Static Public Member Functions | |
static Setup * | getSetup (string n) throw (ILCException::Exception) |
static vector< string > | getSetupNames () throw (ILCException::Exception) |
static vector< string > | getUnusedSetupNames () throw (ILCException::Exception) |
static void | deleteSetup (string n) throw (ILCException::Exception) |
static void | registerRun (int runNum, string setupN) throw (ILCException::Exception) |
static Setup * | getSetupFromRun (int runN) throw (ILCException::Exception) |
Setup::Setup | ( | string | n | ) |
Constructor
void Setup::deleteSetup | ( | string | n | ) | throw (ILCException::Exception) [static] |
Delete a Setup from the database. An exception is thrown if the setup does not exist or is linked to a run.
n | The name of the setup |
string Setup::getName | ( | ) |
Get the name of the setup
Setup * Setup::getSetup | ( | string | n | ) | throw (ILCException::Exception) [static] |
Retrieve a setups from the database
n | The name of the setup |
Setup * Setup::getSetupFromRun | ( | int | runN | ) | throw (ILCException::Exception) [static] |
Get the setup used for a given run
runN | The run number |
vector< string > Setup::getSetupNames | ( | ) | throw (ILCException::Exception) [static] |
Retrieve all the setup names from the database
vector< State * > Setup::getStates | ( | ) |
Get the list of states associated to this setup
vector< string > Setup::getUnusedSetupNames | ( | ) | throw (ILCException::Exception) [static] |
Retrieve the names of the setups not used in a run
bool Setup::isLocked | ( | ) |
Check if the setup is locked
void Setup::lock | ( | ) |
Lock the setup so that it can not be modified
void Setup::recursiveUpload | ( | ) |
For each modified state, upload a new state and finaly creates a new Setup. The name of the state is incremented (TOTO->TOTO_1, TOTO_1->TOTO_2).
void Setup::registerRun | ( | int | runNum, | |
string | setupN | |||
) | throw (ILCException::Exception) [static] |
Record a run/setup association in the database
runNum | The run number | |
setupN | The setup name |
void Setup::upload | ( | ) | throw (ILCException::Exception) |
Upload the current setup to the database (update it if already exists)