test
CMS 3D CMS Logo

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

#include <DbSession.h>

Inheritance diagram for cond::PoolTokenWriter:
ora::ITokenWriter

Public Member Functions

 PoolTokenWriter (ora::Database &db)
 
std::string write (const ora::OId &oid)
 
 ~PoolTokenWriter ()
 
- Public Member Functions inherited from ora::ITokenWriter
virtual ~ITokenWriter ()
 

Private Attributes

ora::Databasem_db
 

Detailed Description

Definition at line 116 of file DbSession.h.

Constructor & Destructor Documentation

cond::PoolTokenWriter::PoolTokenWriter ( ora::Database db)
explicit

Definition at line 327 of file DbSession.cc.

327  :
328  m_db( db ){
329 }
ora::Database & m_db
Definition: DbSession.h:123
cond::PoolTokenWriter::~PoolTokenWriter ( )
inline

Definition at line 119 of file DbSession.h.

119  {
120  }

Member Function Documentation

std::string cond::PoolTokenWriter::write ( const ora::OId oid)
virtual

Implements ora::ITokenWriter.

Definition at line 331 of file DbSession.cc.

References ora::Container::className(), generateEDF::cont, ora::OId::containerId(), ora::OId::itemId(), ora::Container::name(), and cond::writeToken().

Referenced by pkg.AbstractPkg::generate().

331  {
333  return writeToken( cont.name(), oid.containerId(), oid.itemId(), cont.className() );
334 }
ora::Database & m_db
Definition: DbSession.h:123
tuple cont
load Luminosity info ##
Definition: generateEDF.py:622
const std::string & name()
Definition: Container.cc:71
const std::string & className()
Definition: Container.cc:75
Container containerHandle(const std::string &name)
Definition: Database.cc:275
int containerId() const
Definition: OId.cc:50
std::string writeToken(const std::string &containerName, int oid0, int oid1, const std::string &className)
Definition: PoolToken.cc:45
int itemId() const
Definition: OId.cc:54

Member Data Documentation

ora::Database& cond::PoolTokenWriter::m_db
private

Definition at line 123 of file DbSession.h.