Public Member Functions | Private Attributes | List of all members
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.

24 { return fCanBeNull; }
std::string nutools::dbi::ColumnDef::Name ( void  ) const
inline

Definition at line 21 of file ColumnDef.h.

21 { return fName;}
void nutools::dbi::ColumnDef::SetCanBeNull ( bool  f)
inline

Definition at line 30 of file ColumnDef.h.

void nutools::dbi::ColumnDef::SetName ( std::string  n)
inline

Definition at line 27 of file ColumnDef.h.

27 { fName = n; }
std::void_t< T > n
void nutools::dbi::ColumnDef::SetTolerance ( float  t)
inline

Definition at line 31 of file ColumnDef.h.

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

Definition at line 28 of file ColumnDef.h.

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

Definition at line 29 of file ColumnDef.h.

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.

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

Definition at line 22 of file ColumnDef.h.

22 { return fType;}
std::string nutools::dbi::ColumnDef::Value ( ) const
inline

Definition at line 23 of file ColumnDef.h.

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.

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

Definition at line 37 of file ColumnDef.h.

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

Definition at line 35 of file ColumnDef.h.

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

Definition at line 36 of file ColumnDef.h.

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

Definition at line 38 of file ColumnDef.h.


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