#include <PoolDBOutputService.h>
Public Member Functions | |
GetTokenFromPointer (T *p) | |
virtual std::string | operator() (cond::DbSession &pooldb) const |
Static Public Member Functions | |
static std::string | classNameForPointer (T *pointer) |
Public Attributes | |
T * | m_p |
Definition at line 69 of file PoolDBOutputService.h.
cond::service::GetTokenFromPointer< T >::GetTokenFromPointer | ( | T * | p | ) | [inline, explicit] |
Definition at line 77 of file PoolDBOutputService.h.
static std::string cond::service::GetTokenFromPointer< T >::classNameForPointer | ( | T * | pointer | ) | [inline, static] |
Definition at line 72 of file PoolDBOutputService.h.
References cond::classNameForTypeId().
Referenced by cond::service::GetTokenFromPointer< T >::operator()().
{ if(!pointer) return classNameForTypeId( typeid(T) ); return classNameForTypeId( typeid(*pointer) ); }
virtual std::string cond::service::GetTokenFromPointer< T >::operator() | ( | cond::DbSession & | pooldb | ) | const [inline, virtual] |
Implements cond::service::GetToken.
Definition at line 80 of file PoolDBOutputService.h.
References cond::className(), cond::service::GetTokenFromPointer< T >::classNameForPointer(), cond::service::GetTokenFromPointer< T >::m_p, and cond::DbSession::storeObject().
{ std::string className = classNameForPointer( m_p ); boost::shared_ptr<T> sptr( m_p ); return pooldb.storeObject(m_p,className); }
T* cond::service::GetTokenFromPointer< T >::m_p |
Definition at line 85 of file PoolDBOutputService.h.
Referenced by cond::service::GetTokenFromPointer< T >::operator()().