Public Member Functions | Private Attributes | List of all members
nova::dbi::ColumnDef Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-02-25/Database/cxx/include/ColumnDef.h"

Public Member Functions

 ColumnDef (std::string cname, std::string ctype)
 
 ColumnDef (const dBColumn_t &c)
 
 ~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 17 of file ColumnDef.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file ColumnDef.cpp.

13  :
14  fCanBeNull(true),fTolerance(0.),fType(ctype),fName(cname),fValue("")
15  {
16 
17  }
std::string fValue
Definition: ColumnDef.h:41
std::string fType
Definition: ColumnDef.h:39
std::string fName
Definition: ColumnDef.h:40
ColumnDef::ColumnDef ( const dBColumn_t c)

Definition at line 21 of file ColumnDef.cpp.

References fTolerance, fType, fValue, nova::dbi::dBColumn_t::getColType(), nova::dbi::dBColumn_t::getTolerance(), nova::dbi::dBColumn_t::getValue(), nova::dbi::dBColumn_t::hasColType(), nova::dbi::dBColumn_t::hasTolerance(), and nova::dbi::dBColumn_t::hasValue().

21  : fCanBeNull(true),
22  fTolerance(0.),
23  fType("string"),
24  fName(c.getName())
25  {
26  if (c.hasColType())
27  fType = c.getColType();
28  if (c.hasValue())
29  fValue = c.getValue();
30  if (c.hasTolerance())
31  fTolerance = c.getTolerance();
32  }
std::string fValue
Definition: ColumnDef.h:41
std::string fType
Definition: ColumnDef.h:39
std::string fName
Definition: ColumnDef.h:40
ColumnDef::~ColumnDef ( )

Definition at line 36 of file ColumnDef.cpp.

37  {
38 
39  }

Member Function Documentation

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

Definition at line 27 of file ColumnDef.h.

References fCanBeNull.

27 { return fCanBeNull; }
std::string nova::dbi::ColumnDef::Name ( ) const
inline
void nova::dbi::ColumnDef::SetCanBeNull ( bool  f)
inline
void nova::dbi::ColumnDef::SetName ( std::string  n)
inline

Definition at line 30 of file ColumnDef.h.

References fName, and getGoodRuns4SAM::n.

30 { fName = n; }
std::string fName
Definition: ColumnDef.h:40
void nova::dbi::ColumnDef::SetTolerance ( float  t)
inline

Definition at line 34 of file ColumnDef.h.

References fTolerance, and confusionMatrixTree::t.

void nova::dbi::ColumnDef::SetType ( std::string  t)
inline

Definition at line 31 of file ColumnDef.h.

References fType, and confusionMatrixTree::t.

void nova::dbi::ColumnDef::SetValue ( std::string  v)
inline

Definition at line 32 of file ColumnDef.h.

References fValue, and registry_explorer::v.

float nova::dbi::ColumnDef::Tolerance ( ) const
inline

Definition at line 28 of file ColumnDef.h.

References fTolerance.

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

Definition at line 26 of file ColumnDef.h.

References fValue.

26 { return fValue;}
std::string fValue
Definition: ColumnDef.h:41

Member Data Documentation

bool nova::dbi::ColumnDef::fCanBeNull
private

Definition at line 37 of file ColumnDef.h.

Referenced by CanBeNull(), and SetCanBeNull().

std::string nova::dbi::ColumnDef::fName
private

Definition at line 40 of file ColumnDef.h.

Referenced by Name(), and SetName().

float nova::dbi::ColumnDef::fTolerance
private

Definition at line 38 of file ColumnDef.h.

Referenced by ColumnDef(), SetTolerance(), and Tolerance().

std::string nova::dbi::ColumnDef::fType
private

Definition at line 39 of file ColumnDef.h.

Referenced by ColumnDef(), SetType(), and Type().

std::string nova::dbi::ColumnDef::fValue
private

Definition at line 41 of file ColumnDef.h.

Referenced by ColumnDef(), SetValue(), and Value().


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