LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "DBFolder.h"
Public Member Functions | |
DBFolder (const std::string &name, const std::string &url, const std::string &tag="") | |
virtual | ~DBFolder () |
int | GetNamedChannelData (DBChannelID_t channel, const std::string &name, bool &data) |
int | GetNamedChannelData (DBChannelID_t channel, const std::string &name, long &data) |
int | GetNamedChannelData (DBChannelID_t channel, const std::string &name, double &data) |
int | GetNamedChannelData (DBChannelID_t channel, const std::string &name, std::string &data) |
int | GetNamedChannelData (DBChannelID_t channel, const std::string &name, std::vector< double > &data) |
const std::string & | URL () const |
const std::string & | FolderName () const |
const std::string & | Tag () const |
const IOVTimeStamp & | CachedStart () const |
const IOVTimeStamp & | CachedEnd () const |
bool | UpdateData (DBTimeStamp_t raw_time) |
int | GetChannelList (std::vector< DBChannelID_t > &channels) const |
Private Member Functions | |
size_t | GetTupleColumn (DBChannelID_t channel, const std::string &name, Tuple &tup) |
bool | IsValid (const IOVTimeStamp &time) const |
Private Attributes | |
std::string | fURL |
std::string | fFolderName |
std::string | fTag |
int | fMaximumTimeout |
Dataset | fCachedDataset |
int | fNRows |
IOVTimeStamp | fCachedStart |
IOVTimeStamp | fCachedEnd |
std::vector< std::string > | fColumns |
std::vector< std::string > | fTypes |
int | fCachedRow |
DBChannelID_t | fCachedChannel |
Definition at line 15 of file DBFolder.h.
lariov::DBFolder::DBFolder | ( | const std::string & | name, |
const std::string & | url, | ||
const std::string & | tag = "" |
||
) |
Definition at line 25 of file DBFolder.cxx.
References fCachedChannel, fCachedDataset, fCachedRow, fColumns, fFolderName, fMaximumTimeout, fNRows, fTag, fTypes, and fURL.
|
virtual |
|
inline |
Definition at line 32 of file DBFolder.h.
References fCachedEnd, GetChannelList(), GetTupleColumn(), and UpdateData().
|
inline |
|
inline |
int lariov::DBFolder::GetChannelList | ( | std::vector< DBChannelID_t > & | channels | ) | const |
Definition at line 156 of file DBFolder.cxx.
References fCachedDataset, fNRows, and lariov::kNUMBER_HEADER_ROWS.
Referenced by CachedEnd().
int lariov::DBFolder::GetNamedChannelData | ( | DBChannelID_t | channel, |
const std::string & | name, | ||
bool & | data | ||
) |
Definition at line 49 of file DBFolder.cxx.
References col, GetTupleColumn(), and lariov::kBUFFER_SIZE.
int lariov::DBFolder::GetNamedChannelData | ( | DBChannelID_t | channel, |
const std::string & | name, | ||
long & | data | ||
) |
Definition at line 69 of file DBFolder.cxx.
References col, GetTupleColumn(), and lariov::kBUFFER_SIZE.
int lariov::DBFolder::GetNamedChannelData | ( | DBChannelID_t | channel, |
const std::string & | name, | ||
double & | data | ||
) |
Definition at line 91 of file DBFolder.cxx.
References col, and GetTupleColumn().
int lariov::DBFolder::GetNamedChannelData | ( | DBChannelID_t | channel, |
const std::string & | name, | ||
std::string & | data | ||
) |
Definition at line 101 of file DBFolder.cxx.
References col, GetTupleColumn(), and lariov::kBUFFER_SIZE.
int lariov::DBFolder::GetNamedChannelData | ( | DBChannelID_t | channel, |
const std::string & | name, | ||
std::vector< double > & | data | ||
) |
Definition at line 113 of file DBFolder.cxx.
References col, lariov::DataRec::columns, GetTupleColumn(), lariov::kBUFFER_SIZE, and lariov::DataRec::ncolumns.
|
private |
Definition at line 172 of file DBFolder.cxx.
References fCachedChannel, fCachedDataset, fCachedRow, fColumns, fNRows, lariov::kNUMBER_HEADER_ROWS, and util::flags::to_string().
Referenced by CachedEnd(), and GetNamedChannelData().
|
inlineprivate |
Definition at line 41 of file DBFolder.h.
References fCachedEnd, and fCachedStart.
Referenced by UpdateData().
|
inline |
bool lariov::DBFolder::UpdateData | ( | DBTimeStamp_t | raw_time | ) |
Definition at line 232 of file DBFolder.cxx.
References fCachedDataset, fCachedEnd, fCachedStart, fColumns, fFolderName, fMaximumTimeout, fNRows, fTag, fTypes, fURL, IsValid(), lariov::kBUFFER_SIZE, lariov::kNUMBER_HEADER_ROWS, and util::flags::to_string().
Referenced by CachedEnd().
|
inline |
|
private |
Definition at line 59 of file DBFolder.h.
Referenced by DBFolder(), and GetTupleColumn().
|
private |
Definition at line 52 of file DBFolder.h.
Referenced by DBFolder(), GetChannelList(), GetTupleColumn(), UpdateData(), and ~DBFolder().
|
private |
Definition at line 55 of file DBFolder.h.
Referenced by CachedEnd(), IsValid(), and UpdateData().
|
private |
Definition at line 58 of file DBFolder.h.
Referenced by DBFolder(), and GetTupleColumn().
|
private |
Definition at line 54 of file DBFolder.h.
Referenced by CachedStart(), IsValid(), and UpdateData().
|
private |
Definition at line 56 of file DBFolder.h.
Referenced by DBFolder(), GetTupleColumn(), and UpdateData().
|
private |
Definition at line 48 of file DBFolder.h.
Referenced by DBFolder(), FolderName(), and UpdateData().
|
private |
Definition at line 50 of file DBFolder.h.
Referenced by DBFolder(), and UpdateData().
|
private |
Definition at line 53 of file DBFolder.h.
Referenced by DBFolder(), GetChannelList(), GetTupleColumn(), and UpdateData().
|
private |
Definition at line 49 of file DBFolder.h.
Referenced by DBFolder(), Tag(), and UpdateData().
|
private |
Definition at line 57 of file DBFolder.h.
Referenced by DBFolder(), and UpdateData().
|
private |
Definition at line 47 of file DBFolder.h.
Referenced by DBFolder(), UpdateData(), and URL().