LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "DBDataset.h"
Classes | |
class | DBRow |
Public Types | |
typedef std::variant< long, double, std::unique_ptr< std::string > > | value_type |
Public Member Functions | |
DBDataset () | |
DBDataset (void *dataset, bool release=false) | |
DBDataset (const IOVTimeStamp &begin_time, const IOVTimeStamp &end_time, std::vector< std::string > &&col_names, std::vector< std::string > &&col_types, std::vector< DBChannelID_t > &&channels, std::vector< value_type > &&data) | |
const IOVTimeStamp & | beginTime () const |
const IOVTimeStamp & | endTime () const |
size_t | nrows () const |
size_t | ncols () const |
const std::vector< std::string > & | colNames () const |
const std::vector< std::string > & | colTypes () const |
const std::vector< DBChannelID_t > & | channels () const |
const std::vector< value_type > & | data () const |
int | getRowNumber (DBChannelID_t ch) const |
int | getColNumber (const std::string &name) const |
DBRow | getRow (size_t row) const |
Private Attributes | |
IOVTimeStamp | fBeginTime |
IOVTimeStamp | fEndTime |
std::vector< std::string > | fColNames |
std::vector< std::string > | fColTypes |
std::vector< DBChannelID_t > | fChannels |
std::vector< value_type > | fData |
Definition at line 59 of file DBDataset.h.
typedef std::variant<long, double, std::unique_ptr<std::string> > lariov::DBDataset::value_type |
Definition at line 64 of file DBDataset.h.
lariov::DBDataset::DBDataset | ( | ) |
Definition at line 20 of file DBDataset.cxx.
lariov::DBDataset::DBDataset | ( | void * | dataset, |
bool | release = false |
||
) |
Definition at line 24 of file DBDataset.cxx.
References col, fBeginTime, fChannels, fColNames, fColTypes, fData, fEndTime, lariov::IOVTimeStamp::GetFromString(), lariov::kBUFFER_SIZE, lariov::kNUMBER_HEADER_ROWS, lariov::IOVTimeStamp::MaxTimeStamp(), ncols(), nrows(), and value.
lariov::DBDataset::DBDataset | ( | const IOVTimeStamp & | begin_time, |
const IOVTimeStamp & | end_time, | ||
std::vector< std::string > && | col_names, | ||
std::vector< std::string > && | col_types, | ||
std::vector< DBChannelID_t > && | channels, | ||
std::vector< value_type > && | data | ||
) |
Definition at line 167 of file DBDataset.cxx.
|
inline |
Definition at line 115 of file DBDataset.h.
References fBeginTime.
Referenced by lariov::DBFolder::CachedStart(), lariov::DBFolder::CompareDataset(), lariov::DBFolder::DumpDataset(), and lariov::DBFolder::IsValid().
|
inline |
Definition at line 121 of file DBDataset.h.
References fChannels.
Referenced by lariov::DBFolder::CompareDataset(), and lariov::DBFolder::GetChannelList().
|
inline |
Definition at line 119 of file DBDataset.h.
References fColNames.
Referenced by lariov::DBFolder::CompareDataset(), and lariov::DBFolder::DumpDataset().
|
inline |
Definition at line 120 of file DBDataset.h.
References fColTypes.
Referenced by lariov::DBFolder::CompareDataset(), and lariov::DBFolder::DumpDataset().
|
inline |
Definition at line 122 of file DBDataset.h.
References lariov::DBDataset::DBRow::fData, getColNumber(), and getRowNumber().
Referenced by lariov::DBFolder::CompareDataset().
|
inline |
Definition at line 116 of file DBDataset.h.
References fEndTime.
Referenced by lariov::DBFolder::CachedEnd(), lariov::DBFolder::DumpDataset(), and lariov::DBFolder::IsValid().
int lariov::DBDataset::getColNumber | ( | const std::string & | name | ) | const |
Definition at line 225 of file DBDataset.cxx.
References fColNames.
Referenced by data(), and lariov::DBFolder::GetColumn().
|
inline |
Definition at line 131 of file DBDataset.h.
References lariov::DBDataset::DBRow::DBRow(), lariov::DBDataset::DBRow::fData, and ncols().
Referenced by lariov::DBFolder::CompareDataset(), lariov::DBFolder::DumpDataset(), and lariov::DBFolder::GetRow().
int lariov::DBDataset::getRowNumber | ( | DBChannelID_t | ch | ) | const |
Definition at line 185 of file DBDataset.cxx.
References fChannels.
Referenced by data(), and lariov::DBFolder::GetRow().
|
inline |
Definition at line 118 of file DBDataset.h.
References fColNames.
Referenced by lariov::DBFolder::CompareDataset(), DBDataset(), lariov::DBFolder::DumpDataset(), and getRow().
|
inline |
Definition at line 117 of file DBDataset.h.
References fChannels.
Referenced by lariov::DBFolder::CompareDataset(), DBDataset(), and lariov::DBFolder::DumpDataset().
|
private |
Definition at line 136 of file DBDataset.h.
Referenced by beginTime(), and DBDataset().
|
private |
Definition at line 140 of file DBDataset.h.
Referenced by channels(), DBDataset(), getRowNumber(), and nrows().
|
private |
Definition at line 138 of file DBDataset.h.
Referenced by colNames(), DBDataset(), getColNumber(), and ncols().
|
private |
Definition at line 139 of file DBDataset.h.
Referenced by colTypes(), and DBDataset().
|
private |
Definition at line 141 of file DBDataset.h.
Referenced by DBDataset().
|
private |
Definition at line 137 of file DBDataset.h.
Referenced by DBDataset(), and endTime().