CMS 3D CMS Logo

SessionConfiguration.cc

Go to the documentation of this file.
00001 #include "CondCore/DBCommon/interface/SessionConfiguration.h"
00002 #include "CondCore/DBCommon/interface/ConnectionConfiguration.h"
00003 //#include <iostream>
00004 cond::SessionConfiguration::SessionConfiguration():m_authMethod(cond::Env),m_hasBlobstreamer(false),m_blobstreamerName(""),m_messageLevel(cond::Error),m_conConfig(new ConnectionConfiguration),m_isSQLMonitoringOn(false){}
00005 cond::SessionConfiguration::~SessionConfiguration(){
00006   delete m_conConfig;
00007 }
00008 cond::ConnectionConfiguration* 
00009 cond::SessionConfiguration::connectionConfiguration(){
00010   return m_conConfig;
00011 }
00012 void 
00013 cond::SessionConfiguration::setAuthenticationMethod( cond::AuthenticationMethod m ){
00014   m_authMethod=m;
00015 }
00016 void 
00017 cond::SessionConfiguration::setAuthenticationPath( const std::string& p ){
00018   m_authPath=p;
00019 }
00020 void 
00021 cond::SessionConfiguration::setBlobStreamer( const std::string& name ){
00022   m_hasBlobstreamer=true;
00023   m_blobstreamerName=name;
00024 }
00025 void 
00026 cond::SessionConfiguration::setMessageLevel( cond::MessageLevel l ){
00027   m_messageLevel=l;
00028 }
00029 void 
00030 cond::SessionConfiguration::startSQLMonitoring(){
00031   m_isSQLMonitoringOn=true;
00032 }
00033 cond::AuthenticationMethod 
00034 cond::SessionConfiguration::authenticationMethod() const{
00035   return m_authMethod;
00036 }
00037 bool 
00038 cond::SessionConfiguration::hasBlobStreamService() const{
00039   return m_hasBlobstreamer;
00040 }
00041 std::string 
00042 cond::SessionConfiguration::blobStreamerName() const{
00043   return m_blobstreamerName;
00044 }
00045 cond::MessageLevel 
00046 cond::SessionConfiguration::messageLevel() const{
00047   return m_messageLevel;
00048 }
00049 std::string 
00050 cond::SessionConfiguration::authName() const{
00051   return m_authPath;
00052 }
00053 bool
00054 cond::SessionConfiguration::isSQLMonitoringOn() const{
00055   return m_isSQLMonitoringOn;
00056 }
00057 

Generated on Tue Jun 9 17:26:06 2009 for CMSSW by  doxygen 1.5.4