CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CondCore/DBCommon/plugins/SQLiteProxy.cc

Go to the documentation of this file.
00001 #include "CondCore/DBCommon/interface/FipProtocolParser.h"
00002 #include "CondCore/DBCommon/interface/TechnologyProxy.h"
00003 #include <string>
00004 namespace cond{
00005   class SQLiteProxy:public TechnologyProxy{
00006   public:
00007     SQLiteProxy(){}
00008     ~SQLiteProxy(){}
00009     void initialize(const std::string &userconnect, const DbConnection&){
00010         m_userconnect = userconnect;
00011     }
00012     std::string 
00013     getRealConnectString( ) const{
00014       if( m_userconnect.find("sqlite_fip:") != std::string::npos ){
00015         cond::FipProtocolParser p;
00016         return p.getRealConnect(m_userconnect);
00017       }
00018       return m_userconnect;
00019     }
00020     bool isTransactional() const { return true;}
00021 
00022     std::string m_userconnect;
00023   };  
00024 }//ns cond
00025 
00026 #include "CondCore/DBCommon/interface/TechnologyProxyFactory.h"
00027 DEFINE_EDM_PLUGIN(cond::TechnologyProxyFactory,cond::SQLiteProxy,"sqlite");
00028