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

CdbBdbSIncrement.hh

Go to the documentation of this file.
00001 #ifndef CDBBDBSHARED_INCREMENT_HH
00002 #define CDBBDBSHARED_INCREMENT_HH
00003 
00004 // File and Version Information:
00005 //      $Id: CdbBdbSIncrement.hh,v 1.4 2004/08/06 05:54:24 bartoldu Exp $
00006 
00007 #include "BdbUtil/Bdb.hh"
00008 
00009 #include "CdbBase/CdbCommon.hh"
00010 
00011 #include "BdbTime/BdbTime.hh"
00012 
00013 #include <iostream>
00014 
00015 /// Object of this class represent an entry in a collection of increments
00016 /**
00017   * Objects of this embedded class
00018   * a "increments" in a collection of increments to describe the data
00019   * placement for a condition or a cluster of thoses ones.
00020   */
00021 class CdbBdbSIncrement {
00022 
00023 public:
00024 
00025   /// Default & normal constructor
00026   /**
00027     */
00028     CdbBdbSIncrement( const BdbTime& theBeginTime = BdbTime::minusInfinity,
00029                       const BdbTime& theEndTime   = BdbTime::plusInfinity );
00030 
00031   /// Copy constructor
00032   /**
00033     */
00034     CdbBdbSIncrement( const CdbBdbSIncrement& theIncrement );
00035 
00036   /// The destructor
00037   /**
00038     * NOTE: The destructor is NOT virtual because this is an embedded
00039     *       class.
00040     */
00041     ~CdbBdbSIncrement( );
00042 
00043   /// The assignment operator
00044   /**
00045     */
00046     CdbBdbSIncrement& operator=( const CdbBdbSIncrement& theIncrement );
00047 
00048   /// Dump the object contents into a stream
00049   /**
00050     */
00051     void dump( std::ostream& o ) const;
00052 
00053 public:
00054 
00055     BdbTime begin;  // Begin of the "increment" period
00056     BdbTime end;    // End   of the "increment" period
00057 };
00058 
00059 inline
00060 std::ostream&
00061 operator<<( std::ostream&                o,
00062             const CdbBdbSIncrement& theIncrement )
00063 {
00064     theIncrement.dump( o );
00065     return o;
00066 }
00067 
00068 #endif  // CDBBDBSHARED_INCREMENT_HH

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