![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members BdbCondAbsWriter< T > Class Template Reference
[BdbCond]#include <BdbCondAbsWriter.hh>
Public Methods
BdbCondAbsWriter () virtual ~BdbCondAbsWriter () virtual int store (const BdbIntervalBase &when, const T &what)=0 virtual int commit ()=0 Detailed Description
template<class T>
This class declares an abstract interface for persistently storing transient conditions data of type T. A client of this interface will call the store() method once for each transient object to be stored, passing it a validity interval. After all objects have been stored, the commit() method will be called once.
class BdbCondAbsWriter< T >
Definition at line 23 of file BdbCondAbsWriter.hh.
Constructor & Destructor Documentation
template<class T> BdbCondAbsWriter< T >::BdbCondAbsWriter ( ) [inline]
Definition at line 25 of file BdbCondAbsWriter.hh.
template<class T> virtual BdbCondAbsWriter< T >::~BdbCondAbsWriter ( ) [inline, virtual]
The destructor should commit any outstanding store transactions, but this needs more work before extra commits are harmless.
Definition at line 28 of file BdbCondAbsWriter.hh.
Member Function Documentation
template<class T> virtual int BdbCondAbsWriter< T >::commit ( ) [pure virtual]
Commit all store transactions made since the last commit. Only one commit should be necessary, performed after the last store transaction. Additional commits should be harmless.
Referenced by BdbCondConverter< T, P >::run().
template<class T> virtual int BdbCondAbsWriter< T >::store ( const BdbIntervalBase & when, const T & what ) [pure virtual]
Store a persistent representation of the specified transient object, together with the specified validity interval. After being stored, an object is not necessarily readable until a subsequent commit.
Referenced by BdbCondConverter< T, P >::run().
The documentation for this class was generated from the following file:
- /BdbCond/BdbCondAbsWriter.hh
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002