BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Tables/Set.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/rdbModel/rdbModel/Tables/Set.h,v 1.1.1.1 2005/10/17 06:10:53 maqm Exp $
2#ifndef RDBMODEL_SET_H
3#define RDBMODEL_SET_H
4#include <vector>
5#include <string>
6#include "rdbModel/Rdb.h"
7#include "rdbModel/Management/Visitor.h"
8#include "rdbModel/Tables/Column.h" // for FIELDTYPE
9#include "rdbModel/Tables/Table.h"
10namespace rdbModel{
11 class Table;
12 /**
13 Describe update to be made to a single column. Must be to an existing
14 row. Value can be any of the three possible FIELDTYPEs.
15
16 @destColName column to get updated
17 @destType defines whether dest row is existing or proposed
18 @to string for value to go into dest column
19 @toType may be literal, old column or proposed column
20 */
21 class Set {
22 public:
23 Set(Table* table, const std::string& destColName,
24 FIELDTYPE destType,
25 const std::string& srcValue, FIELDTYPE srcType,
26 const std::string& interp = std::string("")) :
27 m_myTable(table), m_destCol(destColName), m_destType(destType),
28 m_srcValue(srcValue), m_srcType(srcType), m_interp(interp) {}
29 /**
30 Normally, operator associated with the assertion will be deleted
31 when the assertion itself is deleted, but this won't happen if
32 keepOp is set to true.
33 */
34
35 ~Set() {}
36 // WHEN getWhen() const {return m_when;}
38 const std::string& getDestColName() const {return m_destCol;}
39 FIELDTYPE getDestType() const {return m_destType;}
40
41 const std::string& getSrcValue() const {return m_srcValue;}
42 FIELDTYPE getSrcType() const {return m_srcType;}
43 const std::string& getInterp() const {return m_interp;}
44
45 bool hasInterp() const {return (m_interp.size() > 0);}
46
47 private:
48 Table* m_myTable;
49 // The target is a column name; may refer to existing column or new one
50 std::string m_destCol;
51 FIELDTYPE m_destType;
52 /// source value may be literal string or column name or empty
53 std::string m_srcValue;
54 /// Describes how to interpret m_srcValue
55 FIELDTYPE m_srcType;
56 std::string m_interp;
57 };
58}
59#endif
60
**********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
Set(Table *table, const std::string &destColName, FIELDTYPE destType, const std::string &srcValue, FIELDTYPE srcType, const std::string &interp=std::string(""))
Visitor::VisitorState accept(Visitor *v)
Definition: Set.cxx:9