Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CondCore
CondDB
src
PayloadReader.cc
Go to the documentation of this file.
1
#include "
CondCore/CondDB/interface/PayloadReader.h
"
2
3
namespace
cond {
4
5
namespace
persistency {
6
7
PayloadReader::PayloadReader
() {
m_connection
.reset(
new
ConnectionPool
); }
8
9
PayloadReader::PayloadReader
(
const
PayloadReader
& rhs) : m_connection(rhs.m_connection), m_session(rhs.m_session) {}
10
11
PayloadReader::~PayloadReader
() {}
12
13
PayloadReader
&
PayloadReader::operator=
(
const
PayloadReader
& rhs) {
14
m_connection
= rhs.
m_connection
;
15
m_session
= rhs.
m_session
;
16
return
*
this
;
17
}
18
19
ConnectionPool
&
PayloadReader::connection
() {
return
*
m_connection
; }
20
21
void
PayloadReader::open
(
const
std::string
&
connectionString
) {
22
m_session
=
m_connection
->createSession(connectionString);
23
}
24
25
void
PayloadReader::open
() {
open
(
PRODUCTION_DB
); }
26
27
void
PayloadReader::close
() {
m_session
.
close
(); }
28
29
}
// namespace persistency
30
}
// namespace cond
cond::persistency::Session::close
void close()
Definition:
Session.cc:50
cond::persistency::PayloadReader::m_session
Session m_session
Definition:
PayloadReader.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
cond::persistency::PayloadReader::PayloadReader
PayloadReader()
Definition:
PayloadReader.cc:7
cond::persistency::PayloadReader::open
void open()
Definition:
PayloadReader.cc:25
cond::persistency::PayloadReader::~PayloadReader
virtual ~PayloadReader()
Definition:
PayloadReader.cc:11
cond::persistency::PayloadReader::PRODUCTION_DB
static constexpr const char *const PRODUCTION_DB
Definition:
PayloadReader.h:25
cond::persistency::PayloadReader
Definition:
PayloadReader.h:23
PayloadReader.h
autoCondModifiers.connectionString
tuple connectionString
Definition:
autoCondModifiers.py:5
cond::persistency::PayloadReader::close
void close()
Definition:
PayloadReader.cc:27
cond::persistency::PayloadReader::connection
ConnectionPool & connection()
Definition:
PayloadReader.cc:19
cond::persistency::ConnectionPool
Definition:
ConnectionPool.h:35
cond::persistency::PayloadReader::m_connection
std::shared_ptr< ConnectionPool > m_connection
Definition:
PayloadReader.h:57
cond::persistency::PayloadReader::operator=
PayloadReader & operator=(const PayloadReader &rhs)
Definition:
PayloadReader.cc:13
Generated for CMSSW Reference Manual by
1.8.5