Main Page
Namespaces
Classes
Package Documentation
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
(){
8
m_connection
.reset(
new
ConnectionPool
);
9
}
10
11
PayloadReader::PayloadReader
(
const
PayloadReader
& rhs ):
12
m_connection
( rhs.
m_connection
),
13
m_session
( rhs.
m_session
){
14
}
15
16
PayloadReader::~PayloadReader
(){
17
}
18
19
PayloadReader
&
PayloadReader::operator=
(
const
PayloadReader
& rhs ){
20
m_connection
= rhs.
m_connection
;
21
m_session
= rhs.
m_session
;
22
return
*
this
;
23
}
24
25
ConnectionPool
&
PayloadReader::connection
(){
26
return
*
m_connection
;
27
}
28
29
void
PayloadReader::open
(
const
std::string
& connectionString ){
30
m_session
=
m_connection
->createSession( connectionString );
31
}
32
33
void
PayloadReader::open
(){
34
open
(
PRODUCTION_DB
);
35
}
36
37
void
PayloadReader::close
(){
38
m_session
.
close
();
39
}
40
41
}
42
}
cond::persistency::Session::close
void close()
Definition:
Session.cc:62
cond::persistency::PayloadReader::m_session
Session m_session
Definition:
PayloadReader.h:60
AlCaHLTBitMon_QueryRunRegistry.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:33
cond::persistency::PayloadReader::~PayloadReader
virtual ~PayloadReader()
Definition:
PayloadReader.cc:16
cond::persistency::PayloadReader
Definition:
PayloadReader.h:23
PayloadReader.h
cond::persistency::PayloadReader::PRODUCTION_DB
static const char *const PRODUCTION_DB
Definition:
PayloadReader.h:26
cond
Definition:
plugin.cc:24
cond::persistency::PayloadReader::close
void close()
Definition:
PayloadReader.cc:37
cond::persistency::PayloadReader::connection
ConnectionPool & connection()
Definition:
PayloadReader.cc:25
cond::persistency::ConnectionPool
Definition:
ConnectionPool.h:31
cond::persistency::PayloadReader::m_connection
std::shared_ptr< ConnectionPool > m_connection
Definition:
PayloadReader.h:59
cond::persistency::PayloadReader::operator=
PayloadReader & operator=(const PayloadReader &rhs)
Definition:
PayloadReader.cc:19
Generated for CMSSW Reference Manual by
1.8.11