CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/CondCore/DBCommon/interface/SQLReport.h

Go to the documentation of this file.
00001 #ifndef CondCoreDBCommon_SQLReport_H
00002 #define CondCoreDBCommon_SQLReport_H
00003 #include <string>
00004 #include <sstream>
00005 #include "CondCore/DBCommon/interface/DbConnection.h"
00006 
00007 namespace cond {
00008 
00009   class DbConnection;
00010   
00011   class SQLReport {
00012 
00013     public:
00014 
00015     explicit SQLReport(DbConnection& connection);
00016 
00017     virtual ~SQLReport(){}
00018     
00019     void reportForConnection(const std::string& connectionString);
00020 
00021     bool putOnFile(std::string fileName=std::string(""));
00022 
00023     private:
00024 
00025     SQLReport();
00026 
00027     DbConnection m_connection;
00028     
00029     std::stringstream m_report;
00030     
00031   };
00032 }
00033 
00034 inline
00035 cond::SQLReport::SQLReport(DbConnection& connection):m_connection(connection),m_report(){
00036 }
00037 
00038 #endif //  CondCoreDBCommon_SQLReport_H
00039 
00040