Jpp  17.0.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions | Variables
JDB.hh File Reference
#include <string>
#include <istream>
#include <ostream>
#include <fstream>
#include <stdlib.h>
#include <vector>
#include <map>
#include <algorithm>
#include "dbclient/KM3NeTDBClient.h"
#include "JSystem/JStat.hh"
#include "JLang/JManip.hh"
#include "JDB/JDBReader.hh"

Go to the source code of this file.

Classes

struct  JDATABASE::JServer
 Wrapper class for server name. More...
 
class  JDATABASE::JDB
 Auxiliary class for connection to data base. More...
 

Namespaces

 JDATABASE
 Auxiliary classes and methods for database I/O.
 
 JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

const Server & JDATABASE::getServer (const std::string &server)
 Get server by name. More...
 
std::vector< JServerJDATABASE::getServernames ()
 Get list of names of available database servers. More...
 
const Server & JDATABASE::getServer ()
 Get default server. More...
 
const char * JDATABASE::getPrivateCookie ()
 Get private cookie. More...
 
const char * JDATABASE::getPublicCookie ()
 Get public cookie. More...
 
std::istream & JDATABASE::operator>> (std::istream &in, JServer &server)
 Read server name from input stream. More...
 
template<class JTable_t >
const char * JDATABASE::getTable ()
 Get table name. More...
 
template<class JTable_t , class JType_t >
const char * JDATABASE::getColumn (JType_t JTable_t::*data_member)
 Get column name. More...
 
template<class JTable_t >
std::vector< std::string > JDATABASE::getColumns ()
 Get column names. More...
 
ResultSet & JDATABASE::getResultSet (const std::string &query)
 Get result set. More...
 
ResultSet & JDATABASE::getResultSet (const std::string &query, const std::vector< Selector > &selection)
 Get result set. More...
 

Variables

static std::vector< std::pair
< JServer, Server > > 
JDATABASE::LIST_OF_SERVERS
 Named list of available database servers. More...
 
static const char JDATABASE::PREFIX_COOKIE = '_'
 Cookie prefix. More...
 
static const std::string JDATABASE::PREFIX_DATAFILTER = "DAQ_triggerParameters"
 This string is prepended to every parameter in the database output for the corresponding process. More...
 
static const std::string JDATABASE::PREFIX_ADF = "DAQ_ADF"