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

CdbRooRoIncrementCollectionR.cc

Go to the documentation of this file.
00001 // File and Version Information:
00002 //      $Id: CdbRooRoIncrementCollectionR.cc,v 1.2 2004/12/03 14:36:15 gapon Exp $
00003 
00004 /// The implementation file for the CdbRooRoIncrementCollectionR class
00005 /**
00006   * @see CdbRooRoIncrementCollectionR
00007   */
00008 
00009 #include "BaBar/BaBar.hh"
00010 
00011 #include "CdbRooReadonly/CdbRooRoIncrementCollectionR.hh"
00012 
00013 #include <iostream>
00014 
00015 using std::endl;
00016 
00017 CdbStatus
00018 CdbRooRoIncrementCollectionR::increment( UShort_t            theNumber,
00019                                          CdbRooRoIncrementR& theIncrement ) const
00020 {
00021     if( theNumber >= numIncrements( )) return CdbStatus::NotFound;
00022     theIncrement = _increments[theNumber];
00023     return CdbStatus::Success;
00024 }
00025 
00026 void
00027 CdbRooRoIncrementCollectionR::dump( std::ostream& o ) const
00028 {
00029     o << "INCREMENT COLLECTION SIZE: " << _increments.size( ) << std::endl;
00030     for( std::vector<CdbRooRoIncrementR>::const_iterator itr  = _increments.begin( );
00031                                                          itr != _increments.end( );
00032                                                          ++itr ) (*itr).dump( o );
00033 }
00034 
00035 /////////////////
00036 // End Of File //
00037 /////////////////

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