CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

stor::ErrorStreamConfigurationInfo Class Reference

#include <ErrorStreamConfigurationInfo.h>

List of all members.

Public Member Functions

 ErrorStreamConfigurationInfo (const std::string &streamLabel, int maxFileSizeMB)
const int maxFileSizeMB () const
bool operator< (const ErrorStreamConfigurationInfo &) const
void setStreamId (StreamID sid)
StreamID streamId () const
const std::string & streamLabel () const
 ~ErrorStreamConfigurationInfo ()

Private Attributes

int maxFileSizeMB_
StreamID streamId_
std::string streamLabel_

Friends

std::ostream & operator<< (std::ostream &, const ErrorStreamConfigurationInfo &)

Detailed Description

Configuration information for the error stream

Author:
mommsen
Revision:
1.6
Date:
2011/03/07 15:31:31

Definition at line 26 of file ErrorStreamConfigurationInfo.h.


Constructor & Destructor Documentation

stor::ErrorStreamConfigurationInfo::ErrorStreamConfigurationInfo ( const std::string &  streamLabel,
int  maxFileSizeMB 
) [inline]
stor::ErrorStreamConfigurationInfo::~ErrorStreamConfigurationInfo ( ) [inline]

Definition at line 40 of file ErrorStreamConfigurationInfo.h.

{}

Member Function Documentation

const int stor::ErrorStreamConfigurationInfo::maxFileSizeMB ( ) const [inline]

Definition at line 44 of file ErrorStreamConfigurationInfo.h.

References maxFileSizeMB_.

Referenced by stor::FRDStreamHandler::getStreamMaxFileSize(), and operator<().

{ return maxFileSizeMB_; }
bool ErrorStreamConfigurationInfo::operator< ( const ErrorStreamConfigurationInfo other) const

Definition at line 10 of file ErrorStreamConfigurationInfo.cc.

References maxFileSizeMB(), maxFileSizeMB_, streamId(), streamId_, streamLabel(), and streamLabel_.

{
  if ( streamLabel_ != other.streamLabel() )
    return ( streamLabel_ < other.streamLabel() );
  if ( streamId_ != other.streamId() )
    return ( streamId_ < other.streamId() );
  return ( maxFileSizeMB_ < other.maxFileSizeMB() );
}
void stor::ErrorStreamConfigurationInfo::setStreamId ( StreamID  sid) [inline]

Definition at line 51 of file ErrorStreamConfigurationInfo.h.

References evf::utils::sid, and streamId_.

Referenced by stor::DiskWriter::makeErrorStream().

{ streamId_ = sid; }
StreamID stor::ErrorStreamConfigurationInfo::streamId ( ) const [inline]

Definition at line 45 of file ErrorStreamConfigurationInfo.h.

References streamId_.

Referenced by operator<().

{ return streamId_; }
const std::string& stor::ErrorStreamConfigurationInfo::streamLabel ( ) const [inline]

Definition at line 43 of file ErrorStreamConfigurationInfo.h.

References streamLabel_.

Referenced by operator<(), and stor::FRDStreamHandler::streamLabel().

{ return streamLabel_; }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const ErrorStreamConfigurationInfo  
) [friend]

Member Data Documentation

Definition at line 60 of file ErrorStreamConfigurationInfo.h.

Referenced by maxFileSizeMB(), and operator<().

Definition at line 61 of file ErrorStreamConfigurationInfo.h.

Referenced by operator<(), setStreamId(), and streamId().

Definition at line 59 of file ErrorStreamConfigurationInfo.h.

Referenced by operator<(), and streamLabel().