CMS 3D CMS Logo

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 
00006 namespace cond {
00007 
00008   class DBSession;
00009   
00010   class SQLReport {
00011 
00012     public:
00013 
00014     explicit SQLReport(const DBSession& session);
00015 
00016     virtual ~SQLReport(){}
00017     
00018     void reportForConnection(const std::string& connectionString);
00019 
00020     bool putOnFile(std::string fileName=std::string(""));
00021 
00022     private:
00023 
00024     SQLReport();
00025 
00026     const DBSession& m_session;
00027     
00028     std::stringstream m_report;
00029     
00030   };
00031 }
00032 
00033 inline
00034 cond::SQLReport::SQLReport(const DBSession& session):m_session(session),m_report(){
00035 }
00036 
00037 #endif //  CondCoreDBCommon_SQLReport_H
00038 
00039   

Generated on Tue Jun 9 17:26:04 2009 for CMSSW by  doxygen 1.5.4