CMS 3D CMS Logo

DBConfig.cc
Go to the documentation of this file.
2 #include "RelationalAccess/ConnectionService.h"
3 #include "RelationalAccess/IConnectionServiceConfiguration.h"
4 #include "CoralKernel/Context.h"
5 #include "CoralKernel/IProperty.h"
6 #include "CoralKernel/IPropertyManager.h"
7 #include <boost/filesystem/operations.hpp>
8 namespace lumi {
9  const std::string defaultAuthFileName = "authentication.xml";
10 }
11 lumi::DBConfig::DBConfig(coral::ConnectionService& svc) : m_svc(&svc) {}
14  boost::filesystem::path boostAuthPath(authPath);
15  if (boost::filesystem::is_directory(boostAuthPath)) {
17  }
18  std::string authFileName = boostAuthPath.string();
19  coral::Context::instance().PropertyManager().property("AuthenticationFile")->set(authFileName);
20  coral::Context::instance().loadComponent("CORAL/Services/XMLAuthenticationService");
21 }
23  //empty for now
24  return usercon;
25 }
lumi_dqm_sourceclient-live_cfg.authPath
authPath
Definition: lumi_dqm_sourceclient-live_cfg.py:33
lumi::defaultAuthFileName
const std::string defaultAuthFileName
Definition: DBConfig.cc:9
lumi::DBConfig::DBConfig
DBConfig(coral::ConnectionService &svc)
Definition: DBConfig.cc:11
lumi::DBConfig::setAuthentication
void setAuthentication(const std::string &authPath)
Definition: DBConfig.cc:13
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
instance
static PFTauRenderPlugin instance
Definition: PFTauRenderPlugin.cc:70
lumi::DBConfig::trueConnectStr
std::string trueConnectStr(const std::string &usercon)
Definition: DBConfig.cc:22
DBConfig.h
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
lumi::DBConfig::~DBConfig
~DBConfig()
Definition: DBConfig.cc:12
lumi
Definition: LumiSectionData.h:20