1 #ifndef __JDB_JDBTOOLKIT__ 
    2 #define __JDB_JDBTOOLKIT__ 
   26 namespace JDATABASE {};
 
   27 namespace JPP { 
using namespace JDATABASE; }
 
   53         this->push_back(parameters);
 
  101       if (p != this->end())
 
  116       return (*
this)[detid].SERIALNUMBER;
 
  128       return (*
this)[id].OID;
 
  144         return to_value<int>(detid);
 
  146         return (*
this)(detid);
 
  162         return (*
this)(to_value<int>(detid));
 
  189         this->push_back(parameters);
 
  213       if (p != this->end())
 
  237       if (p != this->end())
 
  255     public std::map<JPBS_t, std::map<int, JUPI_t> >
 
  268         const JUPI_t upi(parameters.PBS,
 
  271                          parameters.SERIALNUMBER);
 
  273         (*this)[pbs][parameters.SERIALNUMBER] = upi;
 
  289       const_iterator p = this->find(pbs);
 
  291       if (p == this->end()) {
 
  298       if (p != this->end()) {
 
  300         typename mapped_type::const_iterator q = p->second.find(number);
 
  302         if (q != p->second.end()) {
 
  339     template<
class JHelper_t, 
class ...Args>
 
  342       helper.initialise(args...);
 
  352     template<
class ...Args>
 
  365     template<
class JHelper_t, 
class ...Args>
 
  366     static void initialise(JHelper_t& (*pF)(), 
const Args& ...args)
 
  368       JHelper_t::helper.initialise(args...);
 
JPredicate< JResult_t T::*, JComparison::eq > make_predicate(JResult_t T::*member, const JResult_t value)
Helper method to create predicate for data member. 
 
static JCLBIDHelper helper
Helper object. 
 
JCLBIDHelper & getCLBUPI()
Auxiliary function for helper object initialisation. 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
 
JUPIHelper & getUPI()
Auxiliary function for helper object initialisation. 
 
Universal product identifier (UPI). 
 
Auxiliary class for a type holder. 
 
Auxiliary class for specifying selection of database data. 
 
const JDetectors & operator[](const int id)
Get detector. 
 
JDetectorsHelper & getDetector()
Auxiliary function for helper object initialisation. 
 
Auxiliary class for mapping UPI of central-logic board to module identifier. 
 
static JUPIHelper helper
Helper object. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
JCLBIDHelper & getCLBID()
Auxiliary function for helper object initialisation. 
 
bool is_integer(const std::string &buffer)
Check if string is an integer. 
 
int operator()(const std::string &detid, const JType< int > &type)
Get serial number according given data type. 
 
int operator()(const JUPI_t &upi)
Get module identifier. 
 
void initialise(const JPBS_t &pbs)
Initialise. 
 
std::string operator()(const std::string &detid, const JType< std::string > &type)
Get detector identifier according given data type. 
 
Auxiliary class for mapping PBS and serial number of product to UPI. 
 
JUPI_t operator()(const int id)
Get UPI. 
 
static JDetectorsHelper helper
Helper object. 
 
Auxiliary class for mapping serial number and object identifier of detectors. 
 
void initialise()
Initialise. 
 
void initialise()
Initialise. 
 
Product breakdown structure (PBS). 
 
std::string operator()(const int id)
Get detector identifier. 
 
JUPI_t operator()(const JPBS_t &pbs, const int number)
Get UPI. 
 
Exception for accessing a value in a collection that is outside of its range. 
 
int operator()(const std::string &detid)
Get detector serial number. 
 
const JDetectors & operator[](const std::string &detid)
Get detector. 
 
Template definition for getting table specific selector. 
 
static JDB & get()
Get connection to database.