#include "HarpoDB.h"
#include "HarpoDBrunconfig.h"
#include "TXMLFile.h"
#include "TString.h"
#include "TSystem.h"
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
#include <libgen.h>
Go to the source code of this file.
Typedefs | |
typedef enum DBACTIONS_ | DBACTIONS |
typedef dbResults::size_type | dbResSize |
Enumerations | |
enum | DBACTIONS_ { RNONE, RSTART, REND, RRUN, RLAST, RGEN, RQUALITY } |
Functions | |
void | help () |
Print Usage and exit. More... | |
dbResSize | RunningList (dbResults &run_list) |
Get list of runs marked us Running in DB. More... | |
void | ReadConfig (HarpoDBRow &rinfo) |
void | StartRun (long int r) |
Mark Run us running @ date and Fill other fiels from configuration files. More... | |
void | RunDone (long int r) |
void | EndRun (long int r) |
Mark run us finished and update Duration. More... | |
void | GetRunning () |
Get list of runs marked us Running in DB. More... | |
void | GetLastRun () |
Query Max Run Number in DB table. More... | |
void | SetConfig (const char *file) |
Set Configuration File Name. More... | |
void | GenConfig (long int r) |
Genarate Configuration File ( run template ) More... | |
void | SetRunQuality (long int r, const char *qstr) |
Set Run Quqlity String. More... | |
int | main (int argc, char **argv) |
Program start. More... | |
Variables | |
static const char *const | short_options = "hvDnc:s:e:rlg::Q:" |
static const struct option | long_options [] |
static TString * | ProgramName |
static TString * | CfgFileName |
static int | Verbose = 0 |
static int | Debug = 0 |
typedef enum DBACTIONS_ DBACTIONS |
typedef dbResults::size_type dbResSize |
Definition at line 64 of file dbharpo.cxx.
enum DBACTIONS_ |
Enumerator | |
---|---|
RNONE | |
RSTART | |
REND | |
RRUN | |
RLAST | |
RGEN | |
RQUALITY |
Definition at line 18 of file dbharpo.cxx.
void EndRun | ( | long int | r | ) |
Mark run us finished and update Duration.
Definition at line 194 of file dbharpo.cxx.
void GenConfig | ( | long int | r | ) |
Genarate Configuration File ( run template )
Definition at line 276 of file dbharpo.cxx.
void GetLastRun | ( | ) |
Query Max Run Number in DB table.
Definition at line 238 of file dbharpo.cxx.
void GetRunning | ( | ) |
Get list of runs marked us Running in DB.
Definition at line 216 of file dbharpo.cxx.
void help | ( | ) |
Print Usage and exit.
Definition at line 44 of file dbharpo.cxx.
int main | ( | int | argc, |
char ** | argv | ||
) |
Program start.
Definition at line 356 of file dbharpo.cxx.
void ReadConfig | ( | HarpoDBRow & | rinfo | ) |
Definition at line 86 of file dbharpo.cxx.
void RunDone | ( | long int | r | ) |
Really mark run as finshed in DB
Definition at line 153 of file dbharpo.cxx.
Get list of runs marked us Running in DB.
Definition at line 67 of file dbharpo.cxx.
void SetConfig | ( | const char * | file | ) |
Set Configuration File Name.
Definition at line 268 of file dbharpo.cxx.
void SetRunQuality | ( | long int | r, |
const char * | qstr | ||
) |
Set Run Quqlity String.
Definition at line 317 of file dbharpo.cxx.
void StartRun | ( | long int | r | ) |
Mark Run us running @ date and Fill other fiels from configuration files.
Definition at line 108 of file dbharpo.cxx.
|
static |
Definition at line 39 of file dbharpo.cxx.
|
static |
Definition at line 41 of file dbharpo.cxx.
|
static |
Definition at line 23 of file dbharpo.cxx.
|
static |
Definition at line 38 of file dbharpo.cxx.
|
static |
Definition at line 21 of file dbharpo.cxx.
|
static |
Definition at line 40 of file dbharpo.cxx.