1#ifndef __JDB_JDBREADER__
2#define __JDB_JDBREADER__
7#include "dbclient/KM3NeTDBClient.h"
30 using KM3NeT::DB::ResultSet;
31 using KM3NeT::DB::Selector;
60 string parameter = to_upper(i->Name);
63 for (string::size_type pos; (pos = parameter.find(*i)) != string::npos; ) {
145 for (
size_t i = 0; i != rs.FieldCount(); ++i) {
147 string parameter = rs.FieldName(i);
150 for (string::size_type pos; (pos = parameter.find(*i)) != string::npos; ) {
151 parameter.erase(pos);
155 columns.push_back(
cls.find(parameter.c_str()));
159 for (
unsigned int i = 0; i != rs.FieldCount(); ++i) {
210 template<
class JElement_t,
class JAllocator_t>
213 for (JElement_t
object; rs >> object; ) {
214 buffer.push_back(
object);
ASCII I/O of objects with ROOT dictionary.
Simple wrapper class around JROOT::JRootDictionary so that other classes could be included in this di...
static JRootDictionary & getInstance()
Get reference to unique instance of this class object.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
This class can be used to temporarily redirect an input stream to an input string.
Template definition of a multi-dimensional oscillation probability interpolation table.
Implementation for ASCII input of objects with ROOT dictionary.
JRootReader & getObject(T &object)
Read object.
Auxiliary classes and methods for database I/O.
std::istream & operator>>(std::istream &in, JAHRSCalibration &calibration)
Read AHRS calibration from input stream.
static const std::string SPECIAL_CHARACTERS
Special characters.
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class to read object with ROOT dictionary from database.
const T & operator()(ResultSet &rs)
Read object with ROOT dictionary from result set.
JDBReader()
Default constructor.
static void set(const std::vector< Selector > &selection)
Set default value corresponding to given selection.
std::vector< JROOT::JRootReadableClass > columns
field count -> data member
static void reset()
Reset internal lookup table and default value.
static data_type & getInstance()
Get unique instance of template class.
ROOT class for reading into object.