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, Initializer > Class Template Reference

#include <DataProxy.h>

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

Public Types

typedef boost::shared_ptr
< PayProxy
DataP
 
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 boost::shared_ptr
< edm::eventsetup::DataProxy
edmProxyP
 
typedef boost::shared_ptr
< cond::persistency::BasePayloadProxy
ProxyP
 

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)
 
virtual edmProxyP edmProxy () const
 
virtual void lateInit (cond::persistency::Session &session, const std::string &tag, std::string const &il, std::string const &cs)
 
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::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 boost::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  }
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:43
boost::shared_ptr< cond::persistency::PayloadProxy< DataT > > m_proxy
Definition: DataProxy.h:146
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:43
edm::eventsetup::TypeTag m_type
Definition: DataProxy.h:145

Member Function Documentation

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

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>>
virtual void DataProxyWrapper< RecordT, DataT, Initializer >::lateInit ( cond::persistency::Session session,
const std::string &  tag,
std::string const &  il,
std::string const &  cs 
)
inlinevirtual

Implements cond::DataProxyWrapperBase.

Definition at line 130 of file DataProxy.h.

131  {
132  m_proxy.reset(new PayProxy(m_source.empty() ? (const char *)(0) : m_source.c_str() ) );
133  m_proxy->setUp( session );
134  m_proxy->loadTag( tag);
135  m_edmProxy.reset(new DataProxy(m_proxy));
136  addInfo(il, cs, tag);
137  }
auto_ptr< ClusterSequence > cs
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
edmProxyP m_edmProxy
Definition: DataProxy.h:147
std::string const & tag() const
Definition: DataProxy.h:89
std::string m_source
Definition: DataProxy.h:144
boost::shared_ptr< cond::persistency::PayloadProxy< DataT > > m_proxy
Definition: DataProxy.h:146
template<class RecordT, class DataT, typename Initializer = cond::DefaultInitializer<DataT>>
virtual ProxyP DataProxyWrapper< RecordT, DataT, Initializer >::proxy ( ) const
inlinevirtual

Implements cond::DataProxyWrapperBase.

Definition at line 140 of file DataProxy.h.

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

Member Data Documentation

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