CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
DataProxyWrapper< RecordT, DataT, Initializer > Class Template Reference

#include <DataProxy.h>

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

Public Types

typedef std::shared_ptr< PayProxyDataP
 
typedef ::DataProxy< RecordT, DataT, Initializer > DataProxy
 
typedef cond::persistency::PayloadProxy< DataT > PayProxy
 
- Public Types inherited from cond::DataProxyWrapperBase
typedef std::pair< std::string, std::string > Args
 
typedef std::shared_ptr< edm::eventsetup::DataProxyedmProxyP
 
typedef std::shared_ptr< cond::persistency::BasePayloadProxyProxyP
 

Public Member Functions

 DataProxyWrapper (cond::persistency::Session &session, const std::string &tag, const std::string &ilabel, const char *source=0)
 
 DataProxyWrapper (const char *source=0)
 
edmProxyP edmProxy () const override
 
void lateInit (cond::persistency::Session &session, const std::string &tag, const boost::posix_time::ptime &snapshotTime, std::string const &il, std::string const &cs) override
 
ProxyP proxy () const override
 
edm::eventsetup::TypeTag type () const override
 
- 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
 
std::shared_ptr< cond::persistency::PayloadProxy< DataT > > m_proxy
 
std::string m_source
 
edm::eventsetup::TypeTag m_type
 

Detailed Description

template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
class DataProxyWrapper< RecordT, DataT, Initializer >

Definition at line 103 of file DataProxy.h.

Member Typedef Documentation

template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
typedef std::shared_ptr<PayProxy> DataProxyWrapper< RecordT, DataT, Initializer >::DataP

Definition at line 107 of file DataProxy.h.

template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
typedef ::DataProxy<RecordT,DataT, Initializer> DataProxyWrapper< RecordT, DataT, Initializer >::DataProxy

Definition at line 105 of file DataProxy.h.

template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
typedef cond::persistency::PayloadProxy<DataT> DataProxyWrapper< RecordT, DataT, Initializer >::PayProxy

Definition at line 106 of file DataProxy.h.

Constructor & Destructor Documentation

template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
DataProxyWrapper< RecordT, DataT, Initializer >::DataProxyWrapper ( cond::persistency::Session session,
const std::string &  tag,
const std::string &  ilabel,
const char *  source = 0 
)
inline

Definition at line 110 of file DataProxy.h.

111  :
113  m_source( source ? source : "" ),
114  m_proxy(new PayProxy( source)), //'errorPolicy set to true: PayloadProxy should catch and re-throw ORA exceptions' still needed?
116  m_proxy->setUp( session );
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  }
std::shared_ptr< cond::persistency::PayloadProxy< DataT > > m_proxy
Definition: DataProxy.h:146
cond::persistency::PayloadProxy< DataT > PayProxy
Definition: DataProxy.h:106
::DataProxy< RecordT, DataT, Initializer > DataProxy
Definition: DataProxy.h:105
edmProxyP m_edmProxy
Definition: DataProxy.h:147
std::string m_source
Definition: DataProxy.h:144
static std::string const source
Definition: EdmProvDump.cc:47
edm::eventsetup::TypeTag m_type
Definition: DataProxy.h:145
template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
DataProxyWrapper< RecordT, DataT, Initializer >::DataProxyWrapper ( const char *  source = 0)
inlineexplicit

Definition at line 123 of file DataProxy.h.

123  : m_source (source ? source : "") {
124  //NOTE: We do this so that the type 'DataT' will get registered
125  // when the plugin is dynamically loaded
126  m_type = edm::eventsetup::DataKey::makeTypeTag<DataT>();
127  }
std::string m_source
Definition: DataProxy.h:144
static std::string const source
Definition: EdmProvDump.cc:47
edm::eventsetup::TypeTag m_type
Definition: DataProxy.h:145

Member Function Documentation

template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
edmProxyP DataProxyWrapper< RecordT, DataT, Initializer >::edmProxy ( ) const
inlineoverridevirtual

Implements cond::DataProxyWrapperBase.

Definition at line 141 of file DataProxy.h.

141 { return m_edmProxy;}
edmProxyP m_edmProxy
Definition: DataProxy.h:147
template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
void DataProxyWrapper< RecordT, DataT, Initializer >::lateInit ( cond::persistency::Session session,
const std::string &  tag,
const boost::posix_time::ptime &  snapshotTime,
std::string const &  il,
std::string const &  cs 
)
inlineoverridevirtual

Implements cond::DataProxyWrapperBase.

Definition at line 130 of file DataProxy.h.

131  {
132  m_proxy.reset(new PayProxy(m_source.empty() ? (const char *)nullptr : m_source.c_str() ) );
133  m_proxy->setUp( session );
134  m_proxy->loadTag( tag, snapshotTime );
135  m_edmProxy.reset(new DataProxy(m_proxy));
136  addInfo(il, cs, tag);
137  }
std::shared_ptr< cond::persistency::PayloadProxy< DataT > > m_proxy
Definition: DataProxy.h:146
cond::persistency::PayloadProxy< DataT > PayProxy
Definition: DataProxy.h:106
::DataProxy< RecordT, DataT, Initializer > DataProxy
Definition: DataProxy.h:105
void addInfo(std::string const &il, std::string const &cs, std::string const &tag)
Definition: ProxyFactory.cc:25
unique_ptr< ClusterSequence > cs
edmProxyP m_edmProxy
Definition: DataProxy.h:147
std::string const & tag() const
Definition: DataProxy.h:89
std::string m_source
Definition: DataProxy.h:144
template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
ProxyP DataProxyWrapper< RecordT, DataT, Initializer >::proxy ( ) const
inlineoverridevirtual

Implements cond::DataProxyWrapperBase.

Definition at line 140 of file DataProxy.h.

140 { return m_proxy;}
std::shared_ptr< cond::persistency::PayloadProxy< DataT > > m_proxy
Definition: DataProxy.h:146
template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
edm::eventsetup::TypeTag DataProxyWrapper< RecordT, DataT, Initializer >::type ( ) const
inlineoverridevirtual

Member Data Documentation

template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
edmProxyP DataProxyWrapper< RecordT, DataT, Initializer >::m_edmProxy
private

Definition at line 147 of file DataProxy.h.

template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
std::shared_ptr<cond::persistency::PayloadProxy<DataT> > DataProxyWrapper< RecordT, DataT, Initializer >::m_proxy
private

Definition at line 146 of file DataProxy.h.

template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
std::string DataProxyWrapper< RecordT, DataT, Initializer >::m_source
private

Definition at line 144 of file DataProxy.h.

template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
edm::eventsetup::TypeTag DataProxyWrapper< RecordT, DataT, Initializer >::m_type
private

Definition at line 145 of file DataProxy.h.