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