00001
00002
00003
00004
00005
00006
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
00037