CMS 3D CMS Logo

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

#include <PayloadReader.h>

Public Member Functions

void close ()
 
ConnectionPoolconnection ()
 
template<typename T >
boost::shared_ptr< Tfetch (const cond::Hash &payloadHash)
 
void open (const std::string &connectionString)
 
void open ()
 
PayloadReaderoperator= (const PayloadReader &rhs)
 
 PayloadReader ()
 
 PayloadReader (const PayloadReader &rhs)
 
virtual ~PayloadReader ()
 

Static Public Attributes

static const char *const PRODUCTION_DB = "oracle://cms_orcoff_prep/CMS_CONDITIONS_002"
 

Private Attributes

std::shared_ptr< ConnectionPoolm_connection
 
Session m_session
 

Detailed Description

Definition at line 23 of file PayloadReader.h.

Constructor & Destructor Documentation

PayloadReader::PayloadReader ( )

Definition at line 7 of file PayloadReader.cc.

References m_connection.

7  {
8  m_connection.reset( new ConnectionPool );
9  }
std::shared_ptr< ConnectionPool > m_connection
Definition: PayloadReader.h:60
PayloadReader::PayloadReader ( const PayloadReader rhs)

Definition at line 11 of file PayloadReader.cc.

11  :
12  m_connection( rhs.m_connection ),
13  m_session( rhs.m_session ){
14  }
std::shared_ptr< ConnectionPool > m_connection
Definition: PayloadReader.h:60
PayloadReader::~PayloadReader ( )
virtual

Definition at line 16 of file PayloadReader.cc.

16  {
17  }

Member Function Documentation

void PayloadReader::close ( void  )
ConnectionPool & PayloadReader::connection ( )

Definition at line 25 of file PayloadReader.cc.

References m_connection.

25  {
26  return *m_connection;
27  }
std::shared_ptr< ConnectionPool > m_connection
Definition: PayloadReader.h:60
template<typename T >
boost::shared_ptr< T > PayloadReader::fetch ( const cond::Hash payloadHash)
inline
void PayloadReader::open ( const std::string &  connectionString)

Definition at line 29 of file PayloadReader.cc.

References m_connection, and m_session.

Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig().

29  {
30  m_session = m_connection->createSession( connectionString );
31  }
string connectionString
Definition: autoCondHLT.py:4
std::shared_ptr< ConnectionPool > m_connection
Definition: PayloadReader.h:60
void PayloadReader::open ( )
PayloadReader & PayloadReader::operator= ( const PayloadReader rhs)

Definition at line 19 of file PayloadReader.cc.

References m_connection, and m_session.

19  {
20  m_connection = rhs.m_connection;
21  m_session = rhs.m_session;
22  return *this;
23  }
std::shared_ptr< ConnectionPool > m_connection
Definition: PayloadReader.h:60

Member Data Documentation

std::shared_ptr<ConnectionPool> cond::persistency::PayloadReader::m_connection
private

Definition at line 60 of file PayloadReader.h.

Referenced by connection(), open(), operator=(), and PayloadReader().

Session cond::persistency::PayloadReader::m_session
private

Definition at line 61 of file PayloadReader.h.

Referenced by close(), fetch(), open(), and operator=().

const char* const cond::persistency::PayloadReader::PRODUCTION_DB = "oracle://cms_orcoff_prep/CMS_CONDITIONS_002"
static

Definition at line 27 of file PayloadReader.h.

Referenced by fetch(), and open().