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