CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CondBasicIter.h
Go to the documentation of this file.
1 #ifndef CondIter_CondBasicIter_h
2 #define CondIter_CondBasicIter_h
4 #include <string>
5 
6 namespace cond {
7  class DbSession;
8 }
9 
11 
12 public:
13 
14  CondBasicIter();
15  ~CondBasicIter();
16 
17 
29  CondBasicIter(const std::string & NameDB,
30  const std::string & Tag,
31  const std::string & User,
32  const std::string & Pass,
33  const std::string & nameBlob = ""
34  );
35 
36  CondBasicIter(const std::string & NameDB,
37  const std::string & Tag,
38  const std::string & auth = ""
39  );
40 
41  void create(const std::string & NameDB,
42  const std::string & Tag,
43  const std::string & User,
44  const std::string & Pass,
45  const std::string & nameBlob = ""
46  );
47 
48  void create(const std::string & NameDB,
49  const std::string & Tag,
50  const std::string & auth = ""
51  );
52 
53 
57  void setRange(unsigned int min,unsigned int max);
58 
59 
64  void setMin(unsigned int min);
65 
70  void setMax(unsigned int max);
71 
75  unsigned int getTime() const;
76 
80  unsigned int getStartTime() const;
81 
85  unsigned int getStopTime() const;
86 
90  std::string const & getToken() const;
91 
92 
93  bool init();
94  bool forward();
95  bool make();
96  virtual bool load(cond::DbSession& sess, std::string const & token) =0;
97  virtual void clear() =0;
98 
99 protected:
104 
105 private:
108 
109 };
110 
111 
112 #endif
virtual void clear()=0
cond::IOVRange::const_iterator m_begin
cond::IOVRange::const_iterator m_end
#define min(a, b)
Definition: mlp_lapack.h:161
cond::CondDB db
unsigned int getStartTime() const
cond::IOVProxy iov
accept
Definition: HLTenums.h:22
const T & max(const T &a, const T &b)
virtual bool load(cond::DbSession &sess, std::string const &token)=0
void create(const std::string &NameDB, const std::string &Tag, const std::string &User, const std::string &Pass, const std::string &nameBlob="")
iov_range_iterator const_iterator
Definition: IOVProxy.h:114
void setMin(unsigned int min)
void setMax(unsigned int max)
cond::IOVProxy::const_iterator iter
unsigned int getStopTime() const
std::string const & getToken() const
void setRange(unsigned int min, unsigned int max)
cond::RDBMS rdbms
iov_range_iterator const_iterator
Definition: IOVProxy.h:160
unsigned int getTime() const