Jpp
18.2.1
the software that should make you happy
|
Auxiliary class to read object with ROOT dictionary from database. More...
#include <JDBReader.hh>
Public Types | |
typedef T | data_type |
Public Member Functions | |
JDBReader () | |
Default constructor. More... | |
const T & | operator() (ResultSet &rs) |
Read object with ROOT dictionary from result set. More... | |
const JRootDictionary_t & | getDictionary () const |
Get dictionary. More... | |
template<class T > | |
JRootReader & | get (T &object) |
Read object according equation format. More... | |
JRootReader & | get (const JRootReadableClass &cls) |
Read ROOT class according equation format. More... | |
template<class T > | |
JRootReader & | getObject (T &object) |
Read object. More... | |
JRootReader & | getObject (const JRootReadableClass &cls) |
Read ROOT class. More... | |
JRootReader & | getObject (JRootReadableClass &cls) |
Read ROOT class. More... | |
Static Public Member Functions | |
static void | reset () |
Reset internal lookup table and default value. More... | |
static void | set (const std::vector< Selector > &selection) |
Set default value corresponding to given selection. More... | |
static data_type & | getInstance () |
Get unique instance of template class. More... | |
Private Attributes | |
T | object |
internal value More... | |
T | value |
default value More... | |
std::vector < JROOT::JRootReadableClass > | columns |
field count -> data member More... | |
Auxiliary class to read object with ROOT dictionary from database.
The names of the table columns are one-to-one mapped to the names of the data members of the corresponding data structure using the corresponding ROOT dictionary.
For this, all special characters (JDATABASE::SPECIAL_CHARACTERS) are removed from the column names.
The static method JDBReader::set can be used to a priori assign default values to those data members that are defined by the selector used in the query.
Note that the list of column names associated to the template parameter is considered to be permanent.
If not, the static method JDBReader::reset should be called before the next read operation.
Definition at line 94 of file JDBReader.hh.
|
inherited |
Definition at line 20 of file JSingleton.hh.
|
inline |
Default constructor.
Definition at line 101 of file JDBReader.hh.
|
inlinestatic |
Reset internal lookup table and default value.
Definition at line 109 of file JDBReader.hh.
|
inlinestatic |
Set default value corresponding to given selection.
selection | selection |
Definition at line 122 of file JDBReader.hh.
|
inline |
Read object with ROOT dictionary from result set.
rs | result set |
Definition at line 134 of file JDBReader.hh.
|
inlineinherited |
|
inlineinherited |
Read object according equation format.
object | object |
Definition at line 100 of file JRootStreamer.hh.
|
inlineinherited |
Read ROOT class according equation format.
cls | ROOT class |
Definition at line 112 of file JRootStreamer.hh.
|
inlineinherited |
Read object.
object | object |
Definition at line 158 of file JRootStreamer.hh.
|
inlineinherited |
Read ROOT class.
cls | ROOT class |
Definition at line 170 of file JRootStreamer.hh.
|
inlineinherited |
Read ROOT class.
cls | ROOT class |
Definition at line 212 of file JRootStreamer.hh.
|
inlinestaticinherited |
|
private |
internal value
Definition at line 173 of file JDBReader.hh.
|
private |
default value
Definition at line 174 of file JDBReader.hh.
|
private |
field count -> data member
Definition at line 176 of file JDBReader.hh.