CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/EventFilter/StorageManager/src/ErrorStreamConfigurationInfo.cc

Go to the documentation of this file.
00001 // $Id: ErrorStreamConfigurationInfo.cc,v 1.7 2011/03/07 15:31:32 mommsen Exp $
00003 
00004 #include "EventFilter/StorageManager/interface/ErrorStreamConfigurationInfo.h"
00005 #include <ostream>
00006 
00007 using stor::ErrorStreamConfigurationInfo;
00008 
00009 
00010 bool ErrorStreamConfigurationInfo::operator<(const ErrorStreamConfigurationInfo& other) const
00011 {
00012   if ( streamLabel_ != other.streamLabel() )
00013     return ( streamLabel_ < other.streamLabel() );
00014   if ( streamId_ != other.streamId() )
00015     return ( streamId_ < other.streamId() );
00016   return ( maxFileSizeMB_ < other.maxFileSizeMB() );
00017 }
00018 
00019 std::ostream& stor::operator<<
00020 (
00021     std::ostream& os,
00022     const ErrorStreamConfigurationInfo& ci
00023 )
00024 {
00025   os << "ErrorStreamConfigurationInfo:" << std::endl
00026      << " Stream label: " << ci.streamLabel() << std::endl
00027      << " Maximum file size, MB: " << ci.maxFileSizeMB() << std::endl
00028      << " Stream Id: " << ci.streamId() << std::endl;
00029 
00030   return os;
00031 }
00032 
00033