CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/CondCore/DBCommon/src/FipProtocolParser.cc

Go to the documentation of this file.
00001 #include "CondCore/DBCommon/interface/FipProtocolParser.h"
00002 #include "FWCore/ParameterSet/interface/FileInPath.h"
00003 cond::FipProtocolParser::FipProtocolParser(){}
00004 cond::FipProtocolParser::~FipProtocolParser(){}
00005 
00006 std::string 
00007 cond::FipProtocolParser::getRealConnect(const std::string& fipConnect) const{
00008   std::string connect("sqlite_file:");
00009   std::string::size_type pos=fipConnect.find(':');
00010   std::string fipLocation=fipConnect.substr(pos+1);
00011   edm::FileInPath fip(fipLocation);
00012   connect.append( fip.fullPath() );
00013   return connect;
00014 }