2#ifndef RDBMODEL_COLUMN_H
3#define RDBMODEL_COLUMN_H
7#include "rdbModel/Management/Visitor.h"
49 m_isPrimaryKey(
false) {
51 m_default = std::string(
"");};
56 const std::string&
getName()
const {
return m_name; };
57 const std::string&
getComment()
const {
return m_comment;};
59 const std::string&
getDefault()
const {
return m_default;}
74 bool okValue(
const std::string& val,
bool set=
true)
const;
97 bool interpret(
const std::string& interpType, std::string&val);
107 std::string m_comment;
110 std::string m_default;
129 FieldVal(std::string colname, std::string val,
bool isNull=
false) :
153 Row(std::vector<FieldVal>& fields) : m_fields(fields), m_sorted(
false) {}
163 void regroup(std::vector<std::string>& colNames,
164 std::vector<std::string>& colVals,
165 std::vector<std::string>& nullCols)
const;
167 std::vector<FieldVal> m_fields;
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
bool isPrimaryKey() const
Datatype * getDatatype() const
CONTENTS getContentsType() const
const std::string & getDefault() const
bool isAutoIncrement() const
const std::string & getComment() const
const std::string & getTableName() const
const std::string & getName() const
FROM getSourceType() const
Visitor::VisitorState accept(Visitor *v)
bool nullAllowed() const
Returns true if column may take on value NULL.
bool stickyInsert() const
bool isCompatible(const Column *otherCol) const
Return true if otherCol and this have compatible datatypes.
bool interpret(const std::string &interpType, std::string &val)
bool okValue(const std::string &val, bool set=true) const
CONTENTS
Hints to program in case FROM field is FROMprogram.
Function object used to sort FieldValPar objects by column name.
bool operator()(const FieldVal &a, const FieldVal &b)
FieldVal(std::string colname, std::string val, bool isNull=false)
FieldVal * find(std::string colname)
Row(std::vector< FieldVal > &fields)
void regroup(std::vector< std::string > &colNames, std::vector< std::string > &colVals, std::vector< std::string > &nullCols) const
Reorder information suitable for Connection::insert.
void addField(const FieldVal &f)
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")