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

BdbIntervalBase.cc

Go to the documentation of this file.
00001 //-----------------------------------------------------------------------------
00002 //
00003 // File and Version Information:
00004 //      $Id: BdbIntervalBase.cc,v 1.2 2004/08/06 05:48:02 bartoldu Exp $
00005 //
00006 // Description:
00007 //      Class BdbIntervalBase
00008 //
00009 // Environment:
00010 //      Software developed for the BaBar Detector at the SLAC B-Factory.
00011 //
00012 // Author List:
00013 //      Dave Brown, 11-12-97
00014 //
00015 // Copyright Information:
00016 //      Copyright (C) 1997      Lawrence Berkeley Laboratory
00017 //
00018 //-----------------------------------------------------------------------------
00019 #include "BaBar/BaBar.hh"
00020 //-----------------------
00021 // This Class's Header --
00022 //-----------------------
00023 #include "BdbTime/BdbIntervalBase.hh"
00024 using std::ostream;
00025 
00026 //              ----------------------------------------
00027 //              -- Public Member Function Definitions --
00028 //              ----------------------------------------
00029  
00030 //----------------
00031 // Constructors --
00032 //----------------
00033  
00034 BdbIntervalBase::BdbIntervalBase( const BdbTime& begin, const BdbTime& end ) :
00035   _beginTime( begin ), _endTime( end )
00036 {
00037 }
00038 
00039 BdbIntervalBase::BdbIntervalBase(const BdbIntervalBase& other ) :
00040   _beginTime( other._beginTime ), _endTime( other._endTime )
00041 {
00042 }
00043 
00044 // overloaded stream-insertion operator <<
00045 ostream & operator << ( ostream& os, const BdbIntervalBase& interval )
00046 {
00047   os << "Start time = "  << interval.beginTime( )
00048      << " , End time = " << interval.endTime( );
00049   return os;
00050 }
00051 
00052 
00053 
00054 

Generated on Mon Dec 5 18:21:58 2005 for CDB by doxygen1.3-rc3