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 }
static PFTauRenderPlugin instance
std::string trueConnectStr(const std::string &usercon)
Definition: DBConfig.cc:22
void setAuthentication(const std::string &authPath)
Definition: DBConfig.cc:13
DBConfig(coral::ConnectionService &svc)
Definition: DBConfig.cc:11
const std::string defaultAuthFileName
Definition: DBConfig.cc:9