CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
lumi::DBConfig Class Reference

#include <DBConfig.h>

Public Member Functions

 DBConfig (coral::ConnectionService &svc)
 
void setAuthentication (const std::string &authPath)
 
std::string trueConnectStr (const std::string &usercon)
 
 ~DBConfig ()
 

Private Attributes

coral::ConnectionService * m_svc
 

Detailed Description

Definition at line 8 of file DBConfig.h.

Constructor & Destructor Documentation

lumi::DBConfig::DBConfig ( coral::ConnectionService &  svc)
explicit

Definition at line 11 of file DBConfig.cc.

11  : m_svc(&svc){
12 }
coral::ConnectionService * m_svc
Definition: DBConfig.h:16
lumi::DBConfig::~DBConfig ( )

Definition at line 13 of file DBConfig.cc.

13  {
14 }

Member Function Documentation

void lumi::DBConfig::setAuthentication ( const std::string &  authPath)

Definition at line 15 of file DBConfig.cc.

References lumi::defaultAuthFileName, instance, and scaleCards::path.

Referenced by lumi::service::DBService::DBService(), lumi::CMSRunSummaryDummy2DB::retrieveData(), lumi::HLTDummy2DB::retrieveData(), lumi::HLTConfDummy2DB::retrieveData(), lumi::TRGDummy2DB::retrieveData(), lumi::LumiDummy2DB::retrieveData(), lumi::TRGWBM2DB::retrieveData(), lumi::HLTConf2DB::retrieveData(), lumi::Lumi2DB::retrieveData(), lumi::TRGScalers2DB::retrieveData(), lumi::HLTV32DB::retrieveData(), and lumi::CMSRunSummary2DB::retrieveData().

15  {
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 }
static PFTauRenderPlugin instance
list path
Definition: scaleCards.py:51
const std::string defaultAuthFileName
Definition: DBConfig.cc:9
std::string lumi::DBConfig::trueConnectStr ( const std::string &  usercon)

Definition at line 24 of file DBConfig.cc.

24  {
25  //empty for now
26  return usercon;
27 }

Member Data Documentation

coral::ConnectionService* lumi::DBConfig::m_svc
private

Definition at line 16 of file DBConfig.h.