#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 |
Definition at line 8 of file DBConfig.h.
lumi::DBConfig::DBConfig | ( | coral::ConnectionService & | svc | ) | [explicit] |
Definition at line 11 of file DBConfig.cc.
lumi::DBConfig::~DBConfig | ( | ) |
Definition at line 13 of file DBConfig.cc.
{ }
void lumi::DBConfig::setAuthentication | ( | const std::string & | authPath | ) |
Definition at line 15 of file DBConfig.cc.
References lumi::defaultAuthFileName, instance, getHLTPrescaleColumns::path, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by lumi::service::DBService::DBService(), lumi::TRGDummy2DB::retrieveData(), lumi::CMSRunSummary2DB::retrieveData(), lumi::TRGWBM2DB::retrieveData(), lumi::LumiDummy2DB::retrieveData(), lumi::CMSRunSummaryDummy2DB::retrieveData(), lumi::TRGScalers2DB::retrieveData(), lumi::Lumi2DB::retrieveData(), lumi::HLTV32DB::retrieveData(), lumi::HLTConf2DB::retrieveData(), lumi::HLTDummy2DB::retrieveData(), and lumi::HLTConfDummy2DB::retrieveData().
{ boost::filesystem::path boostAuthPath(authPath); if(boost::filesystem::is_directory(boostAuthPath)){ boostAuthPath /= boost::filesystem::path(lumi::defaultAuthFileName); } std::string authFileName=boostAuthPath.string(); coral::Context::instance().PropertyManager().property("AuthenticationFile")->set(authFileName); coral::Context::instance().loadComponent("CORAL/Services/XMLAuthenticationService"); }
std::string lumi::DBConfig::trueConnectStr | ( | const std::string & | usercon | ) |
Definition at line 24 of file DBConfig.cc.
{ //empty for now return usercon; }
coral::ConnectionService* lumi::DBConfig::m_svc [private] |
Definition at line 16 of file DBConfig.h.