LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "Column.h"
Public Member Functions | |
Column () | |
Column (const ColumnDef &c) | |
Column (const Column &c) | |
~Column () | |
uint8_t | Type () const |
std::string | Value () const |
bool | IsNull () const |
bool | Modified () const |
void | Clear () |
void | SetType (uint8_t t) |
void | FastSet (std::string v) |
void | FastSet (const char *v) |
template<class T > | |
bool | Get (T &val) const |
template<class T > | |
bool | Set (const T &val, bool ignoreAutoIncr=false) |
template<class T > | |
bool | Update (const T &val) |
bool | operator>= (const Column &c) const |
bool | operator<= (const Column &c) const |
bool | operator> (const Column &c) const |
bool | operator< (const Column &c) const |
bool | operator== (const Column &c) const |
Private Attributes | |
bool | fModified |
uint16_t | fType |
char * | fValue |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Column &col) |
|
inline |
Definition at line 35 of file Column.h.
References fType, fValue, nutools::dbi::kIntLike, and ~Column().
nutools::dbi::Column::Column | ( | const ColumnDef & | c | ) |
Definition at line 17 of file Column.cpp.
References fType, fValue, nutools::dbi::kAutoIncr, nutools::dbi::kBool, nutools::dbi::kDateStamp, nutools::dbi::kFloatLike, nutools::dbi::kIntLike, nutools::dbi::kString, nutools::dbi::kTimeStamp, and nutools::dbi::ColumnDef::Type().
nutools::dbi::Column::Column | ( | const Column & | c | ) |
nutools::dbi::Column::~Column | ( | ) |
void nutools::dbi::Column::Clear | ( | ) |
Definition at line 56 of file Column.cpp.
References fModified, and fValue.
Referenced by Modified().
|
inline |
|
inline |
|
inline |
Definition at line 72 of file Column.h.
References fValue.
Referenced by operator<(), operator<=(), operator>(), and operator>=().
|
inline |
Definition at line 44 of file Column.h.
References fValue.
Referenced by nutools::dbi::Table::AddRow().
|
inline |
Definition at line 45 of file Column.h.
References Clear(), and fModified.
Referenced by nutools::dbi::Table::WriteToDB().
bool nutools::dbi::Column::operator< | ( | const Column & | c | ) | const |
Definition at line 236 of file Column.cpp.
References nutools::dbi::Util::DateAsStringToTime_t(), fType, fValue, Get(), nutools::dbi::kBool, nutools::dbi::kDateStamp, nutools::dbi::kFloatLike, nutools::dbi::kIntLike, nutools::dbi::kString, nutools::dbi::kTimeStamp, and nutools::dbi::Util::TimeAsStringToTime_t().
Referenced by Update().
bool nutools::dbi::Column::operator<= | ( | const Column & | c | ) | const |
Definition at line 179 of file Column.cpp.
References nutools::dbi::Util::DateAsStringToTime_t(), fType, fValue, Get(), nutools::dbi::kBool, nutools::dbi::kDateStamp, nutools::dbi::kFloatLike, nutools::dbi::kIntLike, nutools::dbi::kString, nutools::dbi::kTimeStamp, and nutools::dbi::Util::TimeAsStringToTime_t().
Referenced by Update().
bool nutools::dbi::Column::operator== | ( | const Column & | c | ) | const |
bool nutools::dbi::Column::operator> | ( | const Column & | c | ) | const |
Definition at line 123 of file Column.cpp.
References nutools::dbi::Util::DateAsStringToTime_t(), fType, fValue, Get(), nutools::dbi::kBool, nutools::dbi::kDateStamp, nutools::dbi::kFloatLike, nutools::dbi::kIntLike, nutools::dbi::kString, nutools::dbi::kTimeStamp, nutools::dbi::Util::TimeAsStringToTime_t(), and Type().
Referenced by Update().
bool nutools::dbi::Column::operator>= | ( | const Column & | c | ) | const |
Definition at line 67 of file Column.cpp.
References nutools::dbi::Util::DateAsStringToTime_t(), fType, fValue, Get(), nutools::dbi::kBool, nutools::dbi::kDateStamp, nutools::dbi::kFloatLike, nutools::dbi::kIntLike, nutools::dbi::kString, nutools::dbi::kTimeStamp, nutools::dbi::Util::TimeAsStringToTime_t(), and Type().
Referenced by Update().
|
inline |
Definition at line 89 of file Column.h.
References fType, fValue, nutools::dbi::kAutoIncr, and nutools::dbi::kBool.
Referenced by Update().
|
inline |
|
inline |
Definition at line 40 of file Column.h.
References fType.
Referenced by operator>(), and operator>=().
|
inline |
Definition at line 128 of file Column.h.
References col, fModified, operator<(), operator<<, operator<=(), operator==(), operator>(), operator>=(), and Set().
|
inline |
|
friend |
Definition at line 152 of file Column.h.
Referenced by Update().
|
private |
|
private |
Definition at line 145 of file Column.h.
Referenced by Column(), operator<(), nutools::dbi::operator<<(), operator<=(), operator==(), operator>(), operator>=(), Set(), SetType(), and Type().
|
private |
Definition at line 146 of file Column.h.
Referenced by Clear(), Column(), FastSet(), Get(), IsNull(), operator<(), nutools::dbi::operator<<(), operator<=(), operator==(), operator>(), operator>=(), Set(), Value(), and ~Column().