Jpp - the software that should make you happy
|
Auxiliary class to read ROOT object 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 ROOT object from result set. More... | |
Static Public Member Functions | |
static void | reset () |
Reset internal lookup table. 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... | |
JROOT::JRootReader | reader |
std::vector < JROOT::JRootReadableClass > | buffer |
Auxiliary class to read ROOT object 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 ROOT dictionary.
The 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 91 of file JDBReader.hh.
|
inherited |
Definition at line 20 of file JSingleton.hh.
|
inline |
Default constructor.
Definition at line 97 of file JDBReader.hh.
|
inlinestatic |
Reset internal lookup table.
Definition at line 106 of file JDBReader.hh.
|
inlinestatic |
Set default value corresponding to given selection.
selection | selection |
Definition at line 119 of file JDBReader.hh.
|
inline |
Read ROOT object from result set.
rs | result set |
Definition at line 131 of file JDBReader.hh.
|
inlinestaticinherited |
|
private |
internal value
Definition at line 170 of file JDBReader.hh.
|
private |
default value
Definition at line 171 of file JDBReader.hh.
|
private |
Definition at line 172 of file JDBReader.hh.
|
private |
Definition at line 174 of file JDBReader.hh.