Diana Software
QDbDefs.cc
Go to the documentation of this file.
1 #include "QDbDefs.hh"
2 
3 namespace QDbDefinitions
4 {
5  //________________________________________________________________________________________
7  switch(sbKind){
8 
9  case Unknown:
10  return 1;
11 
12  case Online:
13  return 1;
14 
15  case Reprocess:
16  return 3000;
17 
18  default:
19  return -1;
20  }
21  }
22 
23  //________________________________________________________________________________________
25  switch(sbKind){
26 
27  case Unknown:
28  return -1;
29 
30  case Online:
31  return 2999;
32 
33  case Reprocess:
34  return 5999;
35 
36  default:
37  return -1;
38  }
39  }
40 
41  //________________________________________________________________________________________
42 }
common definitions and enums for db classes
int GetMinimumId(QSettingsBasketKind sbKind)
this function defines the minimum allowed settings_basket_id for a given kind of settings basket (Onl...
Definition: QDbDefs.cc:6
QSettingsBasketKind
used to retrieve and store settings baskets: the settings_basket_id depends also on the settings bask...
Definition: QDbDefs.hh:36
int GetMaximumId(QSettingsBasketKind sbKind)
this function defines the maximum allowed settings_basket_id for a given kind of settings basket (Onl...
Definition: QDbDefs.cc:24