Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/BdbCond/BdbCondTHistoryRecordTStore.cc

Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //
00003 // File and Version Information:
00004 //      $Id: BdbCondTHistoryRecordTStore.cc,v 1.2 2000/08/12 00:40:39 gapon Exp $
00005 //
00006 // Description:
00007 //      Class BdbCondTHistoryRecordTStore is a concrete transient representation
00008 //      for the class BdbCondHistoryRecordTStore.
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) 2000          Lawrence Berkeley National Laboratory
00018 //
00019 //-----------------------------------------------------------------------------
00020 
00021 //-----------------------
00022 // This Class's Header --
00023 //-----------------------
00024 
00025 #include "BdbCond/BdbCondTHistoryRecordTStore.hh"
00026 
00027 //-------------------------------
00028 // Collaborating Class Headers --
00029 //-------------------------------
00030 
00031 #include "BdbCond/BdbCondHistoryOperations.hh"
00032 #include "ErrLogger/ErrLog.hh"
00033 
00034 //-----------------------------------------------------------------------
00035 // Local Macros, Typedefs, Structures, Unions, and Forward Declarations --
00036 //-----------------------------------------------------------------------
00037 
00038 static const char rcsid[] = "$Id: BdbCondTHistoryRecordTStore.cc,v 1.2 2000/08/12 00:40:39 gapon Exp $";
00039 
00040 //              ----------------------------------------
00041 //              -- Public Function Member Definitions --
00042 //              ----------------------------------------
00043 
00044 //----------------
00045 // Constructors --
00046 //----------------
00047 
00048 BdbCondTHistoryRecordTStore::BdbCondTHistoryRecordTStore( ) :
00049     BdbCondTHistoryRecord( )
00050 {
00051     ErrMsg(fatal) << "BdbCondTHistoryRecordTStore::BdbCondTHistoryRecordTStore( ) - FATAL ERROR IN THE CONSTRUCTOR." << endl
00052                   << "    Use of the default constructor is prohibited in this class." << endmsg;
00053 }
00054 
00055 BdbCondTHistoryRecordTStore::BdbCondTHistoryRecordTStore( const char*    theCode,
00056                                                           const BdbTime& theTime,
00057                                                           const char*    theSite,
00058                                                           const char*    theHost,
00059                                                           const char*    theUser,
00060                                                           const ooId&    theObjectId,
00061                                                           const BdbTime& theStoreTime,
00062                                                           const BdbTime& theTruncateTime,
00063                                                           unsigned int   theTag ) :
00064     BdbCondTHistoryRecord( BdbCondHistoryOperations::OPERATION_STORE_AND_TRUNCATE,
00065                            theCode,
00066                            theTime,
00067                            theSite,
00068                            theHost,
00069                            theUser ),
00070     _object(theObjectId),
00071     _storeTime(theStoreTime),
00072     _truncateTime(theTruncateTime),
00073     _tag(theTag)
00074 {
00075 }
00076 
00077 BdbCondTHistoryRecordTStore::BdbCondTHistoryRecordTStore( const BdbCondTHistoryRecordTStore& theRecord ) :
00078     BdbCondTHistoryRecord( theRecord )
00079 {
00080     _object       = theRecord._object;
00081     _storeTime    = theRecord._storeTime;
00082     _truncateTime = theRecord._truncateTime;
00083     _tag          = theRecord._tag;
00084 }
00085 
00086 //-------------
00087 // Operators --
00088 //-------------
00089 
00090 BdbCondTHistoryRecordTStore&
00091 BdbCondTHistoryRecordTStore::operator=( const BdbCondTHistoryRecordTStore& theRecord )
00092 {
00093     if( this == &theRecord ) return *this;
00094 
00095     BdbCondTHistoryRecord::operator=( theRecord );
00096 
00097     _object       = theRecord._object;
00098     _storeTime    = theRecord._storeTime;
00099     _truncateTime = theRecord._truncateTime;
00100     _tag          = theRecord._tag;
00101 
00102     return *this;
00103 }
00104 
00105 //--------------
00106 // Destructor --
00107 //--------------
00108 
00109 BdbCondTHistoryRecordTStore::~BdbCondTHistoryRecordTStore( )
00110 {
00111 }
00112 
00113 //--------------
00114 // Operations --
00115 //--------------
00116 
00117 BdbCondTHistoryRecord*
00118 BdbCondTHistoryRecordTStore::clone( ) const
00119 {
00120   // Return a deep copy of the current object.
00121 
00122     return new BdbCondTHistoryRecordTStore( *this );
00123 }
00124 
00125 /////////////////
00126 // End Of File //
00127 /////////////////

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002