#include <ErrorStreamConfigurationInfo.h>
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 &) |
Configuration information for the error stream
Definition at line 26 of file ErrorStreamConfigurationInfo.h.
stor::ErrorStreamConfigurationInfo::ErrorStreamConfigurationInfo | ( | const std::string & | streamLabel, |
int | maxFileSizeMB | ||
) | [inline] |
Definition at line 32 of file ErrorStreamConfigurationInfo.h.
: streamLabel_( streamLabel ), maxFileSizeMB_( maxFileSizeMB ), streamId_(0) {}
stor::ErrorStreamConfigurationInfo::~ErrorStreamConfigurationInfo | ( | ) | [inline] |
Definition at line 40 of file ErrorStreamConfigurationInfo.h.
{}
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 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_; }
std::ostream& operator<< | ( | std::ostream & | , |
const ErrorStreamConfigurationInfo & | |||
) | [friend] |
int stor::ErrorStreamConfigurationInfo::maxFileSizeMB_ [private] |
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().
std::string stor::ErrorStreamConfigurationInfo::streamLabel_ [private] |
Definition at line 59 of file ErrorStreamConfigurationInfo.h.
Referenced by operator<(), and streamLabel().