![]() |
|
|
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 /BdbCond/BdbCondHistoryRecordStore.ddl
Go to the documentation of this file.00001 //----------------------------------------------------------------------------- 00002 // 00003 // File and Version Information: 00004 // $Id: BdbCondHistoryRecordStore.ddl,v 1.2 2000/08/11 00:55:17 gapon Exp $ 00005 // 00006 // Description: 00007 // Class BdbCondHistoryRecordStore. 00008 // This is a concrete class specified at "just Store" operation. 00009 // 00010 // Environment: 00011 // Software developed for the BaBar Detector at the SLAC B-Factory. 00012 // 00013 // Author List: 00014 // Igor A. Gaponenko Original Author 00015 // 00016 // Copyright Information: 00017 // Copyright (C) 1999 Lawrence Berkeley National Laboratory 00018 // 00019 //----------------------------------------------------------------------------- 00020 00021 #ifndef BDBCONDHISTORYRECORDSTORE_HH 00022 #define BDBCONDHISTORYRECORDSTORE_HH 00023 00024 // ------------------- 00025 // Database Headers -- 00026 // ------------------- 00027 00028 #include "BdbUtil/Bdb.hh" 00029 00030 // ----------------------------------- 00031 // Collaborating Class Declarations -- 00032 // ----------------------------------- 00033 00034 #include "BdbCond/BdbCondHistoryRecord.hh" 00035 00036 class BdbCondTHistoryRecord; 00037 00038 // ------------------ 00039 // Class Interface -- 00040 // ------------------ 00041 00042 class BdbCondHistoryRecordStore : public BdbCondHistoryRecord { 00043 00044 public: 00045 00046 // Constructors 00047 00048 BdbCondHistoryRecordStore( const char* theCode, 00049 const ooId& theObjectId, 00050 const BdbTime& theBeginTime, 00051 const BdbTime& theEndTime, 00052 d_ULong theTag ); 00053 00054 // Destructor 00055 00056 virtual ~BdbCondHistoryRecordStore( ); 00057 00058 // Accessors (const) 00059 00060 inline const ooId& object ( ) const; 00061 inline const BdbTime& beginTime( ) const; 00062 inline const BdbTime& endTime ( ) const; 00063 inline d_ULong tag ( ) const; 00064 00065 // Operations 00066 00067 ostream& print( ostream& os ); 00068 00069 virtual BdbCondTHistoryRecord* transient( ) const; 00070 00071 private: 00072 00073 // Data members. 00074 00075 ooId _object; 00076 BdbTime _beginTime; 00077 BdbTime _endTime; 00078 d_ULong _tag; 00079 }; 00080 00081 // -------------------- 00082 // -- Inline methods -- 00083 // -------------------- 00084 00085 inline const ooId& 00086 BdbCondHistoryRecordStore::object( ) const 00087 { 00088 return _object; 00089 } 00090 00091 inline const BdbTime& 00092 BdbCondHistoryRecordStore::beginTime( ) const 00093 { 00094 return _beginTime; 00095 } 00096 00097 inline const BdbTime& 00098 BdbCondHistoryRecordStore::endTime( ) const 00099 { 00100 return _endTime; 00101 } 00102 00103 inline d_ULong 00104 BdbCondHistoryRecordStore::tag( ) const 00105 { 00106 return _tag; 00107 } 00108 00109 00110 #endif /* BDBCONDHISTORYRECORDSTORE_HH */
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002