LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
nutools::dbi::ColumnDef Class Reference

#include "ColumnDef.h"

Public Member Functions

 ColumnDef (std::string cname, std::string ctype)
 
 ~ColumnDef ()
 
std::string Name () const
 
std::string Type () const
 
std::string Value () const
 
bool CanBeNull () const
 
float Tolerance () const
 
void SetName (std::string n)
 
void SetType (std::string t)
 
void SetValue (std::string v)
 
void SetCanBeNull (bool f)
 
void SetTolerance (float t)
 

Private Attributes

bool fCanBeNull
 
float fTolerance
 
std::string fType
 
std::string fName
 
std::string fValue
 

Detailed Description

Database Column Defintion Interface

Author
Jonathan Paley
Version
Id
ColumnDef.h,v 1.0 2014/07/02 19:53:02 jpaley Exp

Definition at line 15 of file ColumnDef.h.

Constructor & Destructor Documentation

nutools::dbi::ColumnDef::ColumnDef ( std::string  cname,
std::string  ctype 
)

Definition at line 6 of file ColumnDef.cpp.

6  :
7  fCanBeNull(true),fTolerance(0.),fType(ctype),fName(cname),fValue("")
8  {
9 
10  }
std::string fValue
Definition: ColumnDef.h:38
nutools::dbi::ColumnDef::~ColumnDef ( )

Definition at line 14 of file ColumnDef.cpp.

15  {
16 
17  }

Member Function Documentation

bool nutools::dbi::ColumnDef::CanBeNull ( ) const
inline

Definition at line 24 of file ColumnDef.h.

References fCanBeNull.

24 { return fCanBeNull; }
void nutools::dbi::ColumnDef::SetCanBeNull ( bool  f)
inline

Definition at line 30 of file ColumnDef.h.

References f, and fCanBeNull.

Referenced by nutools::dbi::Table::GetColsFromDB().

30 { fCanBeNull = f;}
TFile f
Definition: plotHisto.C:6
void nutools::dbi::ColumnDef::SetName ( std::string  n)
inline

Definition at line 27 of file ColumnDef.h.

References fName, and n.

27 { fName = n; }
Char_t n[5]
void nutools::dbi::ColumnDef::SetTolerance ( float  t)
inline

Definition at line 31 of file ColumnDef.h.

References fTolerance.

31 { fTolerance = t; }
void nutools::dbi::ColumnDef::SetType ( std::string  t)
inline

Definition at line 28 of file ColumnDef.h.

References fType.

28 { fType = t; }
void nutools::dbi::ColumnDef::SetValue ( std::string  v)
inline

Definition at line 29 of file ColumnDef.h.

References fValue.

29 { fValue = v; }
std::string fValue
Definition: ColumnDef.h:38
float nutools::dbi::ColumnDef::Tolerance ( ) const
inline

Definition at line 25 of file ColumnDef.h.

References fTolerance.

25 { return fTolerance; }
std::string nutools::dbi::ColumnDef::Type ( ) const
inline
std::string nutools::dbi::ColumnDef::Value ( ) const
inline

Definition at line 23 of file ColumnDef.h.

References fValue.

23 { return fValue;}
std::string fValue
Definition: ColumnDef.h:38

Member Data Documentation

bool nutools::dbi::ColumnDef::fCanBeNull
private

Definition at line 34 of file ColumnDef.h.

Referenced by CanBeNull(), and SetCanBeNull().

std::string nutools::dbi::ColumnDef::fName
private

Definition at line 37 of file ColumnDef.h.

Referenced by Name(), and SetName().

float nutools::dbi::ColumnDef::fTolerance
private

Definition at line 35 of file ColumnDef.h.

Referenced by SetTolerance(), and Tolerance().

std::string nutools::dbi::ColumnDef::fType
private

Definition at line 36 of file ColumnDef.h.

Referenced by SetType(), and Type().

std::string nutools::dbi::ColumnDef::fValue
private

Definition at line 38 of file ColumnDef.h.

Referenced by SetValue(), and Value().


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