BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Query.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/rdbModel/rdbModel/Tables/Query.h,v 1.1.1.1 2005/10/17 06:10:53 maqm Exp $
2#ifndef RDBMODEL_QUERY_H
3#define RDBMODEL_QUERY_H
4#include <vector>
5#include <string>
7
8namespace rdbModel{
9
10 class Assertion;
11 class Table;
12
13 /**
14 A query consists of a list of columns to be selected
15 from rows in the table satisfying an assertion. For now,
16 all elements in the assertion must refer to the same table.
17 */
18 class Query {
19 public:
20 Query(Table* table, const std::vector<std::string>* toSelect = 0,
21 Assertion* pAssert=0);
22 ~Query();
23
24 const std::vector<std::string>& getToSelect() const {return m_toSelect;}
25 const Assertion* getAssertion() const {return m_assert;}
26 const Table* getTable() const {return m_myTable;}
27 void addSelect(const std::string& col) {
28 m_toSelect.push_back(col);
29 }
30
32
33
34 private:
35 Table* m_myTable;
36 // bool m_keepOp;
37 std::vector<std::string> m_toSelect;
38 Assertion* m_assert;
39 };
40}
41#endif
42
**********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
const Table * getTable() const
Definition Query.h:26
const Assertion * getAssertion() const
Definition Query.h:25
void addSelect(const std::string &col)
Definition Query.h:27
Visitor::VisitorState accept(Visitor *v)
Definition Query.cxx:27
const std::vector< std::string > & getToSelect() const
Definition Query.h:24
Query(Table *table, const std::vector< std::string > *toSelect=0, Assertion *pAssert=0)
Definition Query.cxx:8