test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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){
12 }
14 }
16  boost::filesystem::path boostAuthPath(authPath);
17  if(boost::filesystem::is_directory(boostAuthPath)){
19  }
20  std::string authFileName=boostAuthPath.string();
21  coral::Context::instance().PropertyManager().property("AuthenticationFile")->set(authFileName);
22  coral::Context::instance().loadComponent("CORAL/Services/XMLAuthenticationService");
23 }
25  //empty for now
26  return usercon;
27 }
28 
static PFTauRenderPlugin instance
tuple lumi
Definition: fjr2json.py:35
tuple svc
Definition: dataDML.py:2332
std::string trueConnectStr(const std::string &usercon)
Definition: DBConfig.cc:24
void setAuthentication(const std::string &authPath)
Definition: DBConfig.cc:15
DBConfig(coral::ConnectionService &svc)
Definition: DBConfig.cc:11
const std::string defaultAuthFileName
Definition: DBConfig.cc:9