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 115 of file DbSession.h.

Constructor & Destructor Documentation

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

Definition at line 312 of file DbSession.cc.

312  :
313  m_db( db ){
314 }
ora::Database & m_db
Definition: DbSession.h:122
cond::PoolTokenWriter::~PoolTokenWriter ( )
inline

Definition at line 118 of file DbSession.h.

118  {
119  }

Member Function Documentation

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

Implements ora::ITokenWriter.

Definition at line 316 of file DbSession.cc.

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

316  {
318  return writeToken( cont.name(), oid.containerId(), oid.itemId(), cont.className() );
319 }
ora::Database & m_db
Definition: DbSession.h:122
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:272
int containerId() const
Definition: OId.cc:50
int cont
std::string writeToken(const std::string &containerName, int oid0, int oid1, const std::string &className)
Definition: PoolToken.cc:44
int itemId() const
Definition: OId.cc:54

Member Data Documentation

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

Definition at line 122 of file DbSession.h.