CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/CondCore/IOVService/interface/IOVSchemaUtility.h

Go to the documentation of this file.
00001 #ifndef CondCore_IOVSchemaUtility_h
00002 #define CondCore_IOVSchemaUtility_h
00003 
00004 #include "CondCore/DBCommon/interface/DbSession.h"
00005 namespace cond{
00006   class IOVSchemaUtility{
00007   public:
00008     explicit IOVSchemaUtility(DbSession& session);
00009     IOVSchemaUtility(DbSession& session, std::ostream& log);
00010     ~IOVSchemaUtility();
00012     bool createIOVContainerIfNecessary();
00013 
00015     bool dropIOVContainer();
00016 
00018     void createPayloadContainer( const std::string& payloadName, const std::string& payloadTypeName );
00019 
00021     void dropPayloadContainer( const std::string& payloadName );
00022 
00024     void dropAll();
00025   private:
00026     cond::DbSession& m_session;
00027     std::ostream* m_log;
00028   };
00029 }//ns cond
00030 #endif