BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
rdbModel::Set Class Reference

#include <Set.h>

Public Member Functions

 Set (Table *table, const std::string &destColName, FIELDTYPE destType, const std::string &srcValue, FIELDTYPE srcType, const std::string &interp=std::string(""))
 
 ~Set ()
 
Visitor::VisitorState accept (Visitor *v)
 
const std::string & getDestColName () const
 
FIELDTYPE getDestType () const
 
const std::string & getSrcValue () const
 
FIELDTYPE getSrcType () const
 
const std::string & getInterp () const
 
bool hasInterp () const
 
 Set (Table *table, const std::string &destColName, FIELDTYPE destType, const std::string &srcValue, FIELDTYPE srcType, const std::string &interp=std::string(""))
 
 ~Set ()
 
Visitor::VisitorState accept (Visitor *v)
 
const std::string & getDestColName () const
 
FIELDTYPE getDestType () const
 
const std::string & getSrcValue () const
 
FIELDTYPE getSrcType () const
 
const std::string & getInterp () const
 
bool hasInterp () const
 

Detailed Description

Describe update to be made to a single column. Must be to an existing row. Value can be any of the three possible FIELDTYPEs.

 @destColName     column to get updated
 @destType        defines whether dest row is existing or proposed
 @to              string for value to go into dest column
 @toType          may be literal, old column or proposed column

Definition at line 21 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Set.h.

Constructor & Destructor Documentation

◆ Set() [1/2]

rdbModel::Set::Set ( Table table,
const std::string &  destColName,
FIELDTYPE  destType,
const std::string &  srcValue,
FIELDTYPE  srcType,
const std::string &  interp = std::string("") 
)
inline

Definition at line 23 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Set.h.

26 :
27 m_myTable(table), m_destCol(destColName), m_destType(destType),
28 m_srcValue(srcValue), m_srcType(srcType), m_interp(interp) {}

◆ ~Set() [1/2]

rdbModel::Set::~Set ( )
inline

Normally, operator associated with the assertion will be deleted when the assertion itself is deleted, but this won't happen if keepOp is set to true.

Definition at line 35 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Set.h.

35{}

◆ Set() [2/2]

rdbModel::Set::Set ( Table table,
const std::string &  destColName,
FIELDTYPE  destType,
const std::string &  srcValue,
FIELDTYPE  srcType,
const std::string &  interp = std::string("") 
)
inline

Definition at line 23 of file InstallArea/include/rdbModel/rdbModel/Tables/Set.h.

26 :
27 m_myTable(table), m_destCol(destColName), m_destType(destType),
28 m_srcValue(srcValue), m_srcType(srcType), m_interp(interp) {}

◆ ~Set() [2/2]

rdbModel::Set::~Set ( )
inline

Normally, operator associated with the assertion will be deleted when the assertion itself is deleted, but this won't happen if keepOp is set to true.

Definition at line 35 of file InstallArea/include/rdbModel/rdbModel/Tables/Set.h.

35{}

Member Function Documentation

◆ accept() [1/2]

Visitor::VisitorState rdbModel::Set::accept ( Visitor v)

Definition at line 9 of file Set.cxx.

9 {
10 Visitor::VisitorState state = v->visitSet(this);
11 if (state == Visitor::VBRANCHDONE) return Visitor::VCONTINUE;
12 return state;
13 }
**********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
Definition: KarLud.h:35

◆ accept() [2/2]

Visitor::VisitorState rdbModel::Set::accept ( Visitor v)

◆ getDestColName() [1/2]

const std::string & rdbModel::Set::getDestColName ( ) const
inline

Definition at line 38 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Set.h.

38{return m_destCol;}

◆ getDestColName() [2/2]

const std::string & rdbModel::Set::getDestColName ( ) const
inline

Definition at line 38 of file InstallArea/include/rdbModel/rdbModel/Tables/Set.h.

38{return m_destCol;}

◆ getDestType() [1/2]

FIELDTYPE rdbModel::Set::getDestType ( ) const
inline

Definition at line 39 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Set.h.

39{return m_destType;}

◆ getDestType() [2/2]

FIELDTYPE rdbModel::Set::getDestType ( ) const
inline

Definition at line 39 of file InstallArea/include/rdbModel/rdbModel/Tables/Set.h.

39{return m_destType;}

◆ getInterp() [1/2]

const std::string & rdbModel::Set::getInterp ( ) const
inline

Definition at line 43 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Set.h.

43{return m_interp;}

◆ getInterp() [2/2]

const std::string & rdbModel::Set::getInterp ( ) const
inline

Definition at line 43 of file InstallArea/include/rdbModel/rdbModel/Tables/Set.h.

43{return m_interp;}

◆ getSrcType() [1/2]

FIELDTYPE rdbModel::Set::getSrcType ( ) const
inline

Definition at line 42 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Set.h.

42{return m_srcType;}

◆ getSrcType() [2/2]

FIELDTYPE rdbModel::Set::getSrcType ( ) const
inline

Definition at line 42 of file InstallArea/include/rdbModel/rdbModel/Tables/Set.h.

42{return m_srcType;}

◆ getSrcValue() [1/2]

const std::string & rdbModel::Set::getSrcValue ( ) const
inline

Definition at line 41 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Set.h.

41{return m_srcValue;}

◆ getSrcValue() [2/2]

const std::string & rdbModel::Set::getSrcValue ( ) const
inline

Definition at line 41 of file InstallArea/include/rdbModel/rdbModel/Tables/Set.h.

41{return m_srcValue;}

◆ hasInterp() [1/2]

bool rdbModel::Set::hasInterp ( ) const
inline

Definition at line 45 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Set.h.

45{return (m_interp.size() > 0);}

◆ hasInterp() [2/2]

bool rdbModel::Set::hasInterp ( ) const
inline

Definition at line 45 of file InstallArea/include/rdbModel/rdbModel/Tables/Set.h.

45{return (m_interp.size() > 0);}

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