LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lariov::DBDataset::DBRow Class Reference

#include "DBDataset.h"

Public Member Functions

 DBRow ()
 
 DBRow (const value_type *s)
 
bool isValid () const
 
const value_typegetData (size_t col) const
 
const std::string & getStringData (size_t col) const
 
long getLongData (size_t col) const
 
double getDoubleData (size_t col) const
 

Private Attributes

const value_typefData
 

Detailed Description

Definition at line 68 of file DBDataset.h.

Constructor & Destructor Documentation

lariov::DBDataset::DBRow::DBRow ( )
inline

Definition at line 72 of file DBDataset.h.

Referenced by lariov::DBDataset::getRow().

72 : fData(nullptr) {}
const value_type * fData
Definition: DBDataset.h:89
lariov::DBDataset::DBRow::DBRow ( const value_type s)
inline

Definition at line 73 of file DBDataset.h.

73 : fData(s) {}
const value_type * fData
Definition: DBDataset.h:89

Member Function Documentation

const value_type& lariov::DBDataset::DBRow::getData ( size_t  col) const
inline

Definition at line 78 of file DBDataset.h.

References col, and fData.

78 { return fData[col]; }
const value_type * fData
Definition: DBDataset.h:89
Int_t col[ntarg]
Definition: Style.C:29
double lariov::DBDataset::DBRow::getDoubleData ( size_t  col) const
inline

Definition at line 84 of file DBDataset.h.

References col, and fData.

Referenced by lariov::DBFolder::CompareDataset(), lariov::DBFolder::DumpDataset(), and lariov::DBFolder::GetNamedChannelData().

84 { return std::get<double>(fData[col]); }
const value_type * fData
Definition: DBDataset.h:89
Int_t col[ntarg]
Definition: Style.C:29
long lariov::DBDataset::DBRow::getLongData ( size_t  col) const
inline

Definition at line 83 of file DBDataset.h.

References col, and fData.

Referenced by lariov::DBFolder::CompareDataset(), lariov::DBFolder::DumpDataset(), lariov::DBFolder::GetNamedChannelData(), and lariov::DBFolder::GetRow().

83 { return std::get<long>(fData[col]); }
const value_type * fData
Definition: DBDataset.h:89
Int_t col[ntarg]
Definition: Style.C:29
const std::string& lariov::DBDataset::DBRow::getStringData ( size_t  col) const
inline

Definition at line 79 of file DBDataset.h.

References col, and fData.

Referenced by lariov::DBFolder::CompareDataset(), lariov::DBFolder::DumpDataset(), and lariov::DBFolder::GetNamedChannelData().

80  {
81  return *std::get<std::unique_ptr<std::string>>(fData[col]);
82  }
const value_type * fData
Definition: DBDataset.h:89
Int_t col[ntarg]
Definition: Style.C:29
bool lariov::DBDataset::DBRow::isValid ( ) const
inline

Definition at line 77 of file DBDataset.h.

References fData.

Referenced by lariov::DBFolder::GetRow().

77 { return fData != nullptr; }
const value_type * fData
Definition: DBDataset.h:89

Member Data Documentation

const value_type* lariov::DBDataset::DBRow::fData
private

The documentation for this class was generated from the following file: