CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CondCore/Utilities/interface/CondBasicIter.h

Go to the documentation of this file.
00001 #ifndef CondIter_CondBasicIter_h
00002 #define CondIter_CondBasicIter_h
00003 #include "CondCore/Utilities/interface/CondPyInterface.h"
00004 #include <string>
00005 
00006 namespace cond {
00007   class DbSession;
00008 }
00009 
00010 class CondBasicIter{
00011 
00012 protected:
00013   cond::RDBMS rdbms;
00014   cond::CondDB db;
00015   cond::IOVProxy iov;
00016   cond::IOVProxy::const_iterator iter;
00017  
00018  public:
00019   
00020   CondBasicIter();    
00021   ~CondBasicIter();    
00022   
00023   
00035   CondBasicIter(const std::string & NameDB,
00036                 const std::string & Tag,
00037                 const std::string & User,
00038                 const std::string & Pass,
00039                 const std::string & nameBlob = ""
00040                 );
00041 
00042   CondBasicIter(const std::string & NameDB,
00043                 const std::string & Tag,
00044                 const std::string & auth = ""
00045                 );
00046 
00047   void create(const std::string & NameDB,
00048               const std::string & Tag,
00049               const std::string & User,
00050               const std::string & Pass,
00051               const std::string & nameBlob = ""
00052               );
00053 
00054   void create(const std::string & NameDB,
00055               const std::string & Tag,
00056               const std::string & auth = ""
00057               );
00058   
00059   
00063   void setRange(unsigned int min,unsigned int max);
00064   
00065   
00070   void setMin(unsigned int min);
00071   
00076   void setMax(unsigned int max);
00077  
00081   unsigned int getTime() const;
00082   
00086   unsigned int getStartTime()  const;
00087   
00091   unsigned int getStopTime()  const;
00092   
00096   std::string const & getToken() const;
00097 
00098 
00099   bool init();
00100   bool forward();
00101   bool make();
00102   virtual bool load(cond::DbSession& sess, std::string const & token) =0;
00103   virtual void clear() =0;
00104 };
00105 
00106 
00107 #endif