CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
DataProxyWrapper< RecordT, DataT > Class Template Reference

#include <DataProxy.h>

Inheritance diagram for DataProxyWrapper< RecordT, DataT >:
cond::DataProxyWrapperBase

Public Types

typedef boost::shared_ptr
< PayProxy
DataP
 
typedef ::DataProxy< RecordT,
DataT > 
DataProxy
 
typedef cond::PayloadProxy< DataT > PayProxy
 
- Public Types inherited from cond::DataProxyWrapperBase
typedef std::pair< std::string,
std::string > 
Args
 
typedef boost::shared_ptr
< edm::eventsetup::DataProxy
edmProxyP
 
typedef boost::shared_ptr
< cond::BasePayloadProxy
ProxyP
 

Public Member Functions

 DataProxyWrapper (cond::DbSession &session, const std::string &iovtoken, std::string const &ilabel, const char *source=0)
 
 DataProxyWrapper (const char *source=0)
 
virtual edmProxyP edmProxy () const
 
virtual void lateInit (cond::DbSession &session, const std::string &tag, std::string const &il, std::string const &cs)
 
virtual void lateInit (cond::DbSession &session, const std::string &iovtoken, std::string const &il, std::string const &cs, std::string const &tag)
 
virtual ProxyP proxy () const
 
virtual edm::eventsetup::TypeTag type () const
 
- Public Member Functions inherited from cond::DataProxyWrapperBase
void addInfo (std::string const &il, std::string const &cs, std::string const &tag)
 
std::string const & connString () const
 
 DataProxyWrapperBase ()
 
 DataProxyWrapperBase (std::string const &il)
 
std::string const & label () const
 
std::string const & tag () const
 
virtual ~DataProxyWrapperBase ()
 

Private Attributes

edmProxyP m_edmProxy
 
boost::shared_ptr
< cond::PayloadProxy< DataT > > 
m_proxy
 
std::string m_source
 
edm::eventsetup::TypeTag m_type
 

Detailed Description

template<class RecordT, class DataT>
class DataProxyWrapper< RecordT, DataT >

Definition at line 98 of file DataProxy.h.

Member Typedef Documentation

template<class RecordT, class DataT>
typedef boost::shared_ptr<PayProxy> DataProxyWrapper< RecordT, DataT >::DataP

Definition at line 102 of file DataProxy.h.

template<class RecordT, class DataT>
typedef ::DataProxy<RecordT,DataT> DataProxyWrapper< RecordT, DataT >::DataProxy

Definition at line 100 of file DataProxy.h.

template<class RecordT, class DataT>
typedef cond::PayloadProxy<DataT> DataProxyWrapper< RecordT, DataT >::PayProxy

Definition at line 101 of file DataProxy.h.

Constructor & Destructor Documentation

template<class RecordT, class DataT>
DataProxyWrapper< RecordT, DataT >::DataProxyWrapper ( cond::DbSession session,
const std::string &  iovtoken,
std::string const &  ilabel,
const char *  source = 0 
)
inline

Definition at line 105 of file DataProxy.h.

106  :
108  m_proxy(new PayProxy(session,iovtoken,true, source)), //errorPolicy set to true: PayloadProxy should catch and re-throw ORA exceptions
110  //NOTE: We do this so that the type 'DataT' will get registered
111  // when the plugin is dynamically loaded
112  m_type = edm::eventsetup::DataKey::makeTypeTag<DataT>();
113  }
::DataProxy< RecordT, DataT > DataProxy
Definition: DataProxy.h:100
boost::shared_ptr< cond::PayloadProxy< DataT > > m_proxy
Definition: DataProxy.h:151
edmProxyP m_edmProxy
Definition: DataProxy.h:152
edm::eventsetup::TypeTag m_type
Definition: DataProxy.h:150
cond::PayloadProxy< DataT > PayProxy
Definition: DataProxy.h:101
template<class RecordT, class DataT>
DataProxyWrapper< RecordT, DataT >::DataProxyWrapper ( const char *  source = 0)
inlineexplicit

Definition at line 116 of file DataProxy.h.

116  : m_source (source ? source : "") {
117  //NOTE: We do this so that the type 'DataT' will get registered
118  // when the plugin is dynamically loaded
119  m_type = edm::eventsetup::DataKey::makeTypeTag<DataT>();
120  }
edm::eventsetup::TypeTag m_type
Definition: DataProxy.h:150
std::string m_source
Definition: DataProxy.h:149

Member Function Documentation

template<class RecordT, class DataT>
virtual edmProxyP DataProxyWrapper< RecordT, DataT >::edmProxy ( ) const
inlinevirtual

Implements cond::DataProxyWrapperBase.

Definition at line 146 of file DataProxy.h.

146 { return m_edmProxy;}
edmProxyP m_edmProxy
Definition: DataProxy.h:152
template<class RecordT, class DataT>
virtual void DataProxyWrapper< RecordT, DataT >::lateInit ( cond::DbSession session,
const std::string &  tag,
std::string const &  il,
std::string const &  cs 
)
inlinevirtual

Implements cond::DataProxyWrapperBase.

Definition at line 123 of file DataProxy.h.

124  {
125  m_proxy.reset(new PayProxy(session,true, //errorPolicy set to true: PayloadProxy should catch and re-throw ORA exceptions
126  m_source.empty() ? (const char *)(0) : m_source.c_str()
127  )
128  );
129  m_proxy->loadTag( tag);
130  m_edmProxy.reset(new DataProxy(m_proxy));
131  addInfo(il, cs, tag);
132  }
auto_ptr< ClusterSequence > cs
::DataProxy< RecordT, DataT > DataProxy
Definition: DataProxy.h:100
void addInfo(std::string const &il, std::string const &cs, std::string const &tag)
Definition: ProxyFactory.cc:25
boost::shared_ptr< cond::PayloadProxy< DataT > > m_proxy
Definition: DataProxy.h:151
edmProxyP m_edmProxy
Definition: DataProxy.h:152
std::string m_source
Definition: DataProxy.h:149
std::string const & tag() const
Definition: DataProxy.h:84
cond::PayloadProxy< DataT > PayProxy
Definition: DataProxy.h:101
template<class RecordT, class DataT>
virtual void DataProxyWrapper< RecordT, DataT >::lateInit ( cond::DbSession session,
const std::string &  iovtoken,
std::string const &  il,
std::string const &  cs,
std::string const &  tag 
)
inlinevirtual

Implements cond::DataProxyWrapperBase.

Definition at line 134 of file DataProxy.h.

135  {
136  m_proxy.reset(new PayProxy(session,iovtoken,true, //errorPolicy set to true: PayloadProxy should catch and re-throw ORA exceptions
137  m_source.empty() ? (const char *)(0) : m_source.c_str()
138  )
139  );
140  m_edmProxy.reset(new DataProxy(m_proxy));
141  addInfo(il, cs, tag);
142  }
auto_ptr< ClusterSequence > cs
::DataProxy< RecordT, DataT > DataProxy
Definition: DataProxy.h:100
void addInfo(std::string const &il, std::string const &cs, std::string const &tag)
Definition: ProxyFactory.cc:25
boost::shared_ptr< cond::PayloadProxy< DataT > > m_proxy
Definition: DataProxy.h:151
edmProxyP m_edmProxy
Definition: DataProxy.h:152
std::string m_source
Definition: DataProxy.h:149
std::string const & tag() const
Definition: DataProxy.h:84
cond::PayloadProxy< DataT > PayProxy
Definition: DataProxy.h:101
template<class RecordT, class DataT>
virtual ProxyP DataProxyWrapper< RecordT, DataT >::proxy ( ) const
inlinevirtual

Implements cond::DataProxyWrapperBase.

Definition at line 145 of file DataProxy.h.

145 { return m_proxy;}
boost::shared_ptr< cond::PayloadProxy< DataT > > m_proxy
Definition: DataProxy.h:151
template<class RecordT, class DataT>
virtual edm::eventsetup::TypeTag DataProxyWrapper< RecordT, DataT >::type ( ) const
inlinevirtual

Member Data Documentation

template<class RecordT, class DataT>
edmProxyP DataProxyWrapper< RecordT, DataT >::m_edmProxy
private
template<class RecordT, class DataT>
boost::shared_ptr<cond::PayloadProxy<DataT> > DataProxyWrapper< RecordT, DataT >::m_proxy
private
template<class RecordT, class DataT>
std::string DataProxyWrapper< RecordT, DataT >::m_source
private
template<class RecordT, class DataT>
edm::eventsetup::TypeTag DataProxyWrapper< RecordT, DataT >::m_type
private